diff --git a/sources/nd2/large_image_source_nd2/__init__.py b/sources/nd2/large_image_source_nd2/__init__.py index be59e6d71..f61488e5b 100644 --- a/sources/nd2/large_image_source_nd2/__init__.py +++ b/sources/nd2/large_image_source_nd2/__init__.py @@ -100,7 +100,7 @@ def diffObj(obj1, obj2): class ND2FileTileSource(FileTileSource, metaclass=LruCacheMetaclass): """ - Provides tile access to nd2 files the nd2 or nd2reader library can read. + Provides tile access to nd2 files the nd2 library can read. """ cacheName = 'tilesource' @@ -138,7 +138,7 @@ def __init__(self, path, **kwargs): except Exception: if not os.path.isfile(self._largeImagePath): raise TileSourceFileNotFoundError(self._largeImagePath) from None - raise TileSourceError('File cannot be opened via nd2reader.') + raise TileSourceError('File cannot be opened via the nd2 source.') # We use dask to allow lazy reading of large images self._nd2array = self._nd2.to_dask(copy=False, wrapper=False) # ##DWM:: arrayOrder = list(self._nd2.sizes) diff --git a/sources/nd2/large_image_source_nd2/girder_source.py b/sources/nd2/large_image_source_nd2/girder_source.py index 5450b5885..91ca5b08e 100644 --- a/sources/nd2/large_image_source_nd2/girder_source.py +++ b/sources/nd2/large_image_source_nd2/girder_source.py @@ -22,13 +22,10 @@ class ND2GirderTileSource(ND2FileTileSource, GirderTileSource): """ Provides tile access to Girder items with an ND2 file or other files that - the nd2reader library can read. + the nd2 library can read. """ cacheName = 'tilesource' name = 'nd2' - def mayHaveAdjacentFiles(self, largeImageFile): - # As of nd2reader 3.3.0, the extension is required to be nd2. Set this - # to true to ensure the extension appears as expected. - return True + _mayHaveAdjacentFiles = True