Skip to content

Commit

Permalink
Turn off clang-format around some lines
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Oct 6, 2023
1 parent bc870b7 commit 3d76e54
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions python/_tskitmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -13254,16 +13254,14 @@ LsHmm_forward_matrix(LsHmm *self, PyObject *args)
PyExc_ValueError, "haplotype array must have dimension (num_sites,)");
goto out;
}
// clang-format off
Py_BEGIN_ALLOW_THREADS err
= tsk_ls_hmm_forward(self->ls_hmm, PyArray_DATA(haplotype_array),
compressed_matrix->compressed_matrix, TSK_NO_INIT);
Py_END_ALLOW_THREADS
Py_END_ALLOW_THREADS;
if (err != 0) {
handle_library_error(err);
goto out;
}
// clang-format on
ret = Py_BuildValue("");
out:
Py_XDECREF(haplotype_array);
Expand Down Expand Up @@ -13314,16 +13312,14 @@ LsHmm_backward_matrix(LsHmm *self, PyObject *args)
PyExc_ValueError, "forward_norm array must have dimension (num_sites,)");
goto out;
}
// clang-format off
Py_BEGIN_ALLOW_THREADS err = tsk_ls_hmm_backward(self->ls_hmm,
PyArray_DATA(haplotype_array), PyArray_DATA(forward_norm_array),
compressed_matrix->compressed_matrix, TSK_NO_INIT);
Py_END_ALLOW_THREADS
Py_END_ALLOW_THREADS;
if (err != 0) {
handle_library_error(err);
goto out;
}
// clang-format on
ret = Py_BuildValue("");
out:
Py_XDECREF(haplotype_array);
Expand Down

0 comments on commit 3d76e54

Please sign in to comment.