large-image-source-bioformats 1.30.4.dev2__py3-none-any.whl → 1.30.5__py3-none-any.whl
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.
Potentially problematic release.
This version of large-image-source-bioformats might be problematic. Click here for more details.
- large_image_source_bioformats/__init__.py +5 -3
- {large_image_source_bioformats-1.30.4.dev2.dist-info → large_image_source_bioformats-1.30.5.dist-info}/METADATA +3 -3
- large_image_source_bioformats-1.30.5.dist-info/RECORD +8 -0
- large_image_source_bioformats-1.30.4.dev2.dist-info/RECORD +0 -8
- {large_image_source_bioformats-1.30.4.dev2.dist-info → large_image_source_bioformats-1.30.5.dist-info}/LICENSE +0 -0
- {large_image_source_bioformats-1.30.4.dev2.dist-info → large_image_source_bioformats-1.30.5.dist-info}/WHEEL +0 -0
- {large_image_source_bioformats-1.30.4.dev2.dist-info → large_image_source_bioformats-1.30.5.dist-info}/entry_points.txt +0 -0
- {large_image_source_bioformats-1.30.4.dev2.dist-info → large_image_source_bioformats-1.30.5.dist-info}/top_level.txt +0 -0
|
@@ -509,13 +509,15 @@ class BioformatsFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
|
509
509
|
|
|
510
510
|
def _computeMagnification(self):
|
|
511
511
|
self._magnification = {}
|
|
512
|
-
metadata = self._metadata
|
|
512
|
+
metadata = self._metadata.get('seriesMetadata', {}).copy()
|
|
513
|
+
metadata.update(self._metadata['metadata'])
|
|
513
514
|
valuekeys = {
|
|
514
515
|
'x': [('Scaling|Distance|Value #1', 1e3)],
|
|
515
516
|
'y': [('Scaling|Distance|Value #2', 1e3)],
|
|
516
517
|
}
|
|
517
518
|
tuplekeys = [
|
|
518
519
|
('Physical pixel size', 1e-3),
|
|
520
|
+
('0028,0030 Pixel Spacing', 1),
|
|
519
521
|
]
|
|
520
522
|
magkeys = [
|
|
521
523
|
'Information|Instrument|Objective|NominalMagnification #1',
|
|
@@ -528,11 +530,11 @@ class BioformatsFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
|
528
530
|
if 'mm_x' not in self._magnification and 'mm_y' not in self._magnification:
|
|
529
531
|
for key, units in tuplekeys:
|
|
530
532
|
if metadata.get(key):
|
|
531
|
-
found = re.match(r'
|
|
533
|
+
found = re.match(r'^[^0-9.]*(\d*\.?\d+)[^0-9.]+(\d*\.?\d+)\D*$', metadata[key])
|
|
532
534
|
if found:
|
|
533
535
|
try:
|
|
534
536
|
self._magnification['mm_x'], self._magnification['mm_y'] = (
|
|
535
|
-
float(found.groups()[0]) * units, float(found.groups()[
|
|
537
|
+
float(found.groups()[0]) * units, float(found.groups()[1]) * units)
|
|
536
538
|
except Exception:
|
|
537
539
|
pass
|
|
538
540
|
for key in magkeys:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: large-image-source-bioformats
|
|
3
|
-
Version: 1.30.
|
|
3
|
+
Version: 1.30.5
|
|
4
4
|
Summary: An bioformats tilesource for large_image.
|
|
5
5
|
Home-page: https://github.com/girder/large_image
|
|
6
6
|
Author: Kitware, Inc.
|
|
@@ -19,10 +19,10 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Requires-Python: >=3.8
|
|
20
20
|
Description-Content-Type: text/x-rst
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: large-image>=1.30.
|
|
22
|
+
Requires-Dist: large-image>=1.30.5
|
|
23
23
|
Requires-Dist: python-bioformats>=1.5.2
|
|
24
24
|
Provides-Extra: girder
|
|
25
|
-
Requires-Dist: girder-large-image>=1.30.
|
|
25
|
+
Requires-Dist: girder-large-image>=1.30.5; extra == "girder"
|
|
26
26
|
|
|
27
27
|
An bioformats tilesource for large_image.
|
|
28
28
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
large_image_source_bioformats/__init__.py,sha256=FrnLn4Tpjfnk-bxOvbr6hxUWqar9nRYe8pzgkBc_vSQ,32406
|
|
2
|
+
large_image_source_bioformats/girder_source.py,sha256=t0X1P0m4qMsRklpdxoPH-yqgHByMvQIzFJ4qRIUykVI,1355
|
|
3
|
+
large_image_source_bioformats-1.30.5.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
4
|
+
large_image_source_bioformats-1.30.5.dist-info/METADATA,sha256=rYI6S-YnnpIjLZu8EKiyPGMwnTxXJptBZ1a5UZevcbU,1103
|
|
5
|
+
large_image_source_bioformats-1.30.5.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
6
|
+
large_image_source_bioformats-1.30.5.dist-info/entry_points.txt,sha256=xgIbKr53QhQkyRFkr87fkagfPWweeqhHHekUEMrcpF8,202
|
|
7
|
+
large_image_source_bioformats-1.30.5.dist-info/top_level.txt,sha256=e0enjlcFXwPi638IhE71Rk5-eeriA7W3M3IsQ6yH3RI,30
|
|
8
|
+
large_image_source_bioformats-1.30.5.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
large_image_source_bioformats/__init__.py,sha256=3ZHaTWSn_5HZf9VQPy9VIAsklvbXkm0sXh-wyQJhq7U,32283
|
|
2
|
-
large_image_source_bioformats/girder_source.py,sha256=t0X1P0m4qMsRklpdxoPH-yqgHByMvQIzFJ4qRIUykVI,1355
|
|
3
|
-
large_image_source_bioformats-1.30.4.dev2.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
4
|
-
large_image_source_bioformats-1.30.4.dev2.dist-info/METADATA,sha256=kR7Vbv1xq7h9Abw_f9wFY1khbhSFUYpQkpg6o9jlWYg,1118
|
|
5
|
-
large_image_source_bioformats-1.30.4.dev2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
6
|
-
large_image_source_bioformats-1.30.4.dev2.dist-info/entry_points.txt,sha256=xgIbKr53QhQkyRFkr87fkagfPWweeqhHHekUEMrcpF8,202
|
|
7
|
-
large_image_source_bioformats-1.30.4.dev2.dist-info/top_level.txt,sha256=e0enjlcFXwPi638IhE71Rk5-eeriA7W3M3IsQ6yH3RI,30
|
|
8
|
-
large_image_source_bioformats-1.30.4.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|