tlambert03 / nd2

Full-featured nd2 (Nikon NIS Elements) file reader for python. Outputs to numpy, dask, and xarray. Exhaustive metadata extraction
https://tlambert03.github.io/nd2
BSD 3-Clause "New" or "Revised" License
54 stars 15 forks source link

bioio-nd2 failing to load from large file #211

Closed toloudis closed 8 months ago

toloudis commented 8 months ago

Hi! If this is spam or redundant please feel free to close. Does this issue look like anything you've seen before? https://github.com/bioio-devs/bioio-nd2/issues/12 The first error I see is: UserWarning: ND2File file not closed before garbage collection. Please use with ND2File(...): context or call .close().

tlambert03 commented 8 months ago

yes, that's a valid warning (not an error) that can come from nd2 if you create an ND2File() instance, but never close it before the object get's deleted. Let's continue the conversation over in your other repo to see if we can track down the aberrant usage