From 3d76e544b995a12005c79b03cb129e6736540563 Mon Sep 17 00:00:00 2001 From: Shing Zhan Date: Fri, 6 Oct 2023 17:02:08 +0100 Subject: [PATCH] Turn off clang-format around some lines --- python/_tskitmodule.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/python/_tskitmodule.c b/python/_tskitmodule.c index 317d2beb59..3ac004cc00 100644 --- a/python/_tskitmodule.c +++ b/python/_tskitmodule.c @@ -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); @@ -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);