Skip to content

Commit

Permalink
add GIL release for statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbin973 authored and benjeffery committed Jan 9, 2025
1 parent a6f8195 commit 98458ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/_tskitmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -9715,9 +9715,11 @@ TreeSequence_weighted_stat_vector_method(
if (result_array == NULL) {
goto out;
}
Py_BEGIN_ALLOW_THREADS
err = method(self->tree_sequence, w_shape[1], PyArray_DATA(weights_array),
num_windows, PyArray_DATA(windows_array), num_focal_nodes,
PyArray_DATA(focal_nodes_array), PyArray_DATA(result_array), options);
Py_END_ALLOW_THREADS
if (err != 0) {
handle_library_error(err);
goto out;
Expand Down

0 comments on commit 98458ac

Please sign in to comment.