Bugfix on GIL release
This commit is contained in:
parent
bf06402b11
commit
204e431d79
@ -114,9 +114,10 @@ void init_dsp(py::module &m) {
|
|||||||
|
|
||||||
aps.def("compute", [](AvPowerSpectra &aps, dpyarray timedata) {
|
aps.def("compute", [](AvPowerSpectra &aps, dpyarray timedata) {
|
||||||
std::optional<ccube> res;
|
std::optional<ccube> res;
|
||||||
|
dmat timedata_mat = NpyToMat<d, false>(timedata);
|
||||||
{
|
{
|
||||||
py::gil_scoped_release release;
|
py::gil_scoped_release release;
|
||||||
res = aps.compute(NpyToMat<d, false>(timedata));
|
res = aps.compute(timedata_mat);
|
||||||
}
|
}
|
||||||
|
|
||||||
return CubeToNpy<c>(res.value_or(ccube(0, 0, 0)));
|
return CubeToNpy<c>(res.value_or(ccube(0, 0, 0)));
|
||||||
|
Loading…
Reference in New Issue
Block a user