large-image-source-bioformats 1.27.5.dev55__tar.gz → 1.27.5.dev61__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.
Files changed (15) hide show
  1. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/PKG-INFO +1 -1
  2. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/large_image_source_bioformats/__init__.py +14 -2
  3. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/large_image_source_bioformats.egg-info/PKG-INFO +1 -1
  4. large-image-source-bioformats-1.27.5.dev61/large_image_source_bioformats.egg-info/requires.txt +5 -0
  5. large-image-source-bioformats-1.27.5.dev55/large_image_source_bioformats.egg-info/requires.txt +0 -5
  6. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/LICENSE +0 -0
  7. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/README.rst +0 -0
  8. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/large_image_source_bioformats/girder_source.py +0 -0
  9. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/large_image_source_bioformats.egg-info/SOURCES.txt +0 -0
  10. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/large_image_source_bioformats.egg-info/dependency_links.txt +0 -0
  11. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/large_image_source_bioformats.egg-info/entry_points.txt +0 -0
  12. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/large_image_source_bioformats.egg-info/top_level.txt +0 -0
  13. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/pyproject.toml +0 -0
  14. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/setup.cfg +0 -0
  15. {large-image-source-bioformats-1.27.5.dev55 → large-image-source-bioformats-1.27.5.dev61}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-bioformats
3
- Version: 1.27.5.dev55
3
+ Version: 1.27.5.dev61
4
4
  Summary: An bioformats tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
@@ -61,8 +61,7 @@ _openImages = []
61
61
 
62
62
 
63
63
  # Default to ignoring files with no extension and some specific extensions.
64
- config.ConfigValues['source_bioformats_ignored_names'] = \
65
- r'(^[^.]*|\.(jpg|jpeg|jpe|png|tif|tiff|ndpi|nd2|ome|nc|json|isyntax|mrxs|zarr(\.db|\.zip)))$'
64
+ config.ConfigValues['source_bioformats_ignored_names'] = r'(^[^.]*|\.(jpg|jpeg|jpe|png|tif|tiff|ndpi|nd2|ome|nc|json|isyntax|mrxs|zip|zarr(\.db|\.zip)))$' # noqa
66
65
 
67
66
 
68
67
  def _monitor_thread():
@@ -215,6 +214,7 @@ class BioformatsFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
215
214
  if not _startJavabridge(self.logger):
216
215
  msg = 'File cannot be opened by bioformats reader because javabridge failed to start'
217
216
  raise TileSourceError(msg)
217
+ self.addKnownExtensions()
218
218
 
219
219
  self._tileLock = threading.RLock()
220
220
 
@@ -699,6 +699,18 @@ class BioformatsFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
699
699
  javabridge.detach()
700
700
  return large_image.tilesource.base._imageToPIL(image)
701
701
 
702
+ @classmethod
703
+ def addKnownExtensions(cls):
704
+ # This starts javabridge/bioformats if needed
705
+ _getBioformatsVersion()
706
+ if not hasattr(cls, '_addedExtensions'):
707
+ cls._addedExtensions = True
708
+ cls.extensions = cls.extensions.copy()
709
+ for dotext in bioformats.READABLE_FORMATS:
710
+ ext = dotext.strip('.')
711
+ if ext not in cls.extensions:
712
+ cls.extensions[ext] = SourcePriority.IMPLICIT
713
+
702
714
 
703
715
  def open(*args, **kwargs):
704
716
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-bioformats
3
- Version: 1.27.5.dev55
3
+ Version: 1.27.5.dev61
4
4
  Summary: An bioformats tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
@@ -0,0 +1,5 @@
1
+ large-image>=1.27.5.dev61
2
+ python-bioformats>=1.5.2
3
+
4
+ [girder]
5
+ girder-large-image>=1.27.5.dev61
@@ -1,5 +0,0 @@
1
- large-image>=1.27.5.dev55
2
- python-bioformats>=1.5.2
3
-
4
- [girder]
5
- girder-large-image>=1.27.5.dev55