From 7a37d63c8f1c130ff6db4ba32d8e330df4f27b9e Mon Sep 17 00:00:00 2001 From: Samuel Welborn <55868530+swelborn@users.noreply.github.com> Date: Sat, 20 May 2023 13:41:10 -0400 Subject: [PATCH] acquire gil before creating numpy array --- python/image.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/python/image.cpp b/python/image.cpp index 21bc9e04..894caadf 100644 --- a/python/image.cpp +++ b/python/image.cpp @@ -33,6 +33,7 @@ struct ElectronCountedDataPyArray ElectronCountedDataPyArray(ElectronCountedData&& other) { + py::gil_scoped_acquire acquire; data.resize(other.data.size()); for (size_t i = 0; i < other.data.size(); ++i) { data[i].reserve(other.data[i].size());