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());