large-image-source-bioformats 1.26.3.dev16__tar.gz → 1.26.3.dev20__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.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/PKG-INFO +1 -1
  2. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/large_image_source_bioformats/__init__.py +13 -1
  3. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/large_image_source_bioformats.egg-info/PKG-INFO +1 -1
  4. large-image-source-bioformats-1.26.3.dev20/large_image_source_bioformats.egg-info/requires.txt +5 -0
  5. large-image-source-bioformats-1.26.3.dev16/large_image_source_bioformats.egg-info/requires.txt +0 -5
  6. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/LICENSE +0 -0
  7. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/README.rst +0 -0
  8. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/large_image_source_bioformats/girder_source.py +0 -0
  9. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/large_image_source_bioformats.egg-info/SOURCES.txt +0 -0
  10. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/large_image_source_bioformats.egg-info/dependency_links.txt +0 -0
  11. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/large_image_source_bioformats.egg-info/entry_points.txt +0 -0
  12. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/large_image_source_bioformats.egg-info/top_level.txt +0 -0
  13. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/pyproject.toml +0 -0
  14. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/setup.cfg +0 -0
  15. {large-image-source-bioformats-1.26.3.dev16 → large-image-source-bioformats-1.26.3.dev20}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-bioformats
3
- Version: 1.26.3.dev16
3
+ Version: 1.26.3.dev20
4
4
  Summary: An bioformats tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
@@ -26,10 +26,12 @@ import atexit
26
26
  import logging
27
27
  import math
28
28
  import os
29
+ import pathlib
29
30
  import re
30
31
  import threading
31
32
  import types
32
33
  import weakref
34
+ import zipfile
33
35
  from importlib.metadata import PackageNotFoundError
34
36
  from importlib.metadata import version as _importlib_version
35
37
 
@@ -53,6 +55,7 @@ bioformats = None
53
55
  javabridge = None
54
56
 
55
57
  _javabridgeStarted = None
58
+ _bioformatsVersion = None
56
59
  _openImages = []
57
60
 
58
61
 
@@ -110,7 +113,7 @@ def _reduceLogging():
110
113
 
111
114
 
112
115
  def _startJavabridge(logger):
113
- global _javabridgeStarted
116
+ global _javabridgeStarted, _bioformatsVersion
114
117
 
115
118
  if _javabridgeStarted is None:
116
119
  # Only import these when first asked. They are slow to import.
@@ -118,6 +121,15 @@ def _startJavabridge(logger):
118
121
  global javabridge
119
122
  if bioformats is None:
120
123
  import bioformats
124
+ try:
125
+ _bioformatsVersion = zipfile.ZipFile(
126
+ pathlib.Path(bioformats.__file__).parent /
127
+ 'jars/bioformats_package.jar',
128
+ ).open('META-INF/MANIFEST.MF').read(8192).split(
129
+ b'Implementation-Version: ')[1].split()[0].decode()
130
+ logger.info('Bioformats.jar version: %s', _bioformatsVersion)
131
+ except Exception:
132
+ pass
121
133
  if javabridge is None:
122
134
  import javabridge
123
135
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-bioformats
3
- Version: 1.26.3.dev16
3
+ Version: 1.26.3.dev20
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.26.3.dev20
2
+ python-bioformats>=1.5.2
3
+
4
+ [girder]
5
+ girder-large-image>=1.26.3.dev20
@@ -1,5 +0,0 @@
1
- large-image>=1.26.3.dev16
2
- python-bioformats>=1.5.2
3
-
4
- [girder]
5
- girder-large-image>=1.26.3.dev16