large-image-source-nd2 1.23.6.dev4__tar.gz → 1.23.6.dev8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-nd2
3
- Version: 1.23.6.dev4
3
+ Version: 1.23.6.dev8
4
4
  Summary: An nd2 (NIS Elements) tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
@@ -191,7 +191,10 @@ class ND2FileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
191
191
  self._tileLock = threading.RLock()
192
192
 
193
193
  def __del__(self):
194
- if hasattr(self, '_nd2'):
194
+ # If we have an _unstyledInstance attribute, this is not the owner of
195
+ # the _nd2 handle, so we can't close it. Otherwise, we need to close
196
+ # it or the nd2 library complains that we didn't explicitly close it.
197
+ if hasattr(self, '_nd2') and not hasattr(self, '_unstyledInstance'):
195
198
  self._nd2.close()
196
199
  del self._nd2
197
200
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-nd2
3
- Version: 1.23.6.dev4
3
+ Version: 1.23.6.dev8
4
4
  Summary: An nd2 (NIS Elements) tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
@@ -1,4 +1,4 @@
1
- large-image>=1.23.6.dev4
1
+ large-image>=1.23.6.dev8
2
2
  dask[array]
3
3
  nd2[legacy]>=0.2.3
4
4
 
@@ -6,4 +6,4 @@ nd2[legacy]>=0.2.3
6
6
  importlib-metadata<5
7
7
 
8
8
  [girder]
9
- girder-large-image>=1.23.6.dev4
9
+ girder-large-image>=1.23.6.dev8