Mouse-Imaging-Centre / pyminc

A python interface to the MINC 2 library, allowing use of numpy arrays to access MINC data, and other such similar goodies, developed by Jason Lerch
http://en.wikibooks.org/wiki/MINC/Tutorials
Other
14 stars 8 forks source link

Fix setHyperslab #32

Closed d-chagnon closed 3 years ago

d-chagnon commented 4 years ago

I encountered an issue were I:

Using that workflow, the check at the beginning of closeVolume will not detect that data was written in the volume, leading to the volume being deleted, even if it was perfectly fine. I managed to solve the issue by adding self._data_written_to_file = True at the end of setHyperslab, but I suspect there might be a better way to solve that?