ngio 0.4.7__py3-none-any.whl → 0.4.8__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.
@@ -168,6 +168,7 @@ def compute_masking_roi(
168
168
  z_length = None
169
169
  else:
170
170
  z_length = max_z - min_z
171
+
171
172
  roi = RoiPixels(
172
173
  name=str(label),
173
174
  x_length=max_x - min_x,
@@ -177,7 +178,6 @@ def compute_masking_roi(
177
178
  x=min_x,
178
179
  y=min_y,
179
180
  z=min_z,
180
- t=min_t,
181
181
  label=label,
182
182
  )
183
183
 
ngio/images/_label.py CHANGED
@@ -337,6 +337,6 @@ def derive_label(
337
337
 
338
338
  def build_masking_roi_table(label: Label) -> MaskingRoiTable:
339
339
  """Compute the masking ROI table for a label."""
340
- array = label.get_as_dask()
340
+ array = label.get_as_dask(axes_order=["t", "z", "y", "x"])
341
341
  rois = compute_masking_roi(array, label.pixel_size)
342
342
  return MaskingRoiTable(rois, reference_label=label.meta.name)
ngio/utils/_datasets.py CHANGED
@@ -155,5 +155,11 @@ def download_ome_zarr_dataset(
155
155
  path=download_dir,
156
156
  processor=processor,
157
157
  progressbar=progressbar,
158
+ # Add User-Agent to avoid 403 errors from Zenodo
159
+ downloader=pooch.HTTPDownloader(
160
+ headers={
161
+ "User-Agent": f"pooch/{pooch.__version__} (https://github.com/BioVisionCenter/ngio)"
162
+ }
163
+ ),
158
164
  )
159
165
  return processor.output_file()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ngio
3
- Version: 0.4.7
3
+ Version: 0.4.8
4
4
  Summary: Next Generation file format IO
5
5
  Project-URL: homepage, https://github.com/BioVisionCenter/ngio
6
6
  Project-URL: repository, https://github.com/BioVisionCenter/ngio
@@ -22,7 +22,7 @@ Requires-Dist: dask[distributed]<2025.11.0
22
22
  Requires-Dist: filelock
23
23
  Requires-Dist: numpy
24
24
  Requires-Dist: ome-zarr-models
25
- Requires-Dist: pandas>=1.2.0
25
+ Requires-Dist: pandas<3.0.0,>=1.2.0
26
26
  Requires-Dist: pillow
27
27
  Requires-Dist: polars
28
28
  Requires-Dist: pooch
@@ -1,7 +1,7 @@
1
1
  ngio/__init__.py,sha256=rEgnXuU6TCejUUGsxt4eKmjMhxjYh0fYBxWF4o5YjbE,1435
2
2
  ngio/common/__init__.py,sha256=aPSuUbdGryrxbnlWrsVNe3LZoBAWC4GijR1BNH1UwuU,612
3
3
  ngio/common/_dimensions.py,sha256=w8PYgyWxA8hgJETjFbw5CXf7WrasCL5FbzgfL1in86M,11361
4
- ngio/common/_masking_roi.py,sha256=2XbfwdooOseXGxb48G4DDaBFEJ3YU1oHdemazpG668c,5717
4
+ ngio/common/_masking_roi.py,sha256=ZZTXordEZoq_ADk0OzADvq-5dPOwUBSuNobzFR8fpTw,5697
5
5
  ngio/common/_pyramid.py,sha256=Wxj8RXSWWEPm5ILqvga484Hd2j3IQ4tGzHZsL5WSOuo,8446
6
6
  ngio/common/_roi.py,sha256=9fKFTHoUiP0xmxvQiFkNmIuwWg3bFuRaAx-froCSqvA,11487
7
7
  ngio/common/_synt_images_utils.py,sha256=B6uYOW1NyrM06YMR-csca3_YnAAkPRTbvnbLdy9tk9E,3188
@@ -21,7 +21,7 @@ ngio/images/_abstract_image.py,sha256=hrB9xn4MFRxnxE1d7HKnM8SXVPUGhMD9u32yBHTsFi
21
21
  ngio/images/_create.py,sha256=61cuco2jUK25WzOY-Sel9s931FtGPL2ut25L9W10bJ4,10171
22
22
  ngio/images/_create_synt_container.py,sha256=il_rr5_2KIQ5Xsskj2rb2fEm100ZErZq89aW06kn_7k,5444
23
23
  ngio/images/_image.py,sha256=aMJb-YDghbZIHfSzY8ZoTmScEOqNfWQzJFO2AoMCdF4,33053
24
- ngio/images/_label.py,sha256=nFwUthWj5L4QMvYKfqKjU03OY_oRedeU5Y4cSIVo0Z0,11768
24
+ ngio/images/_label.py,sha256=Se3ZpgXDArtLHPlx9pw8Rnr5pZ_sEkmbeMh9sU63ncg,11799
25
25
  ngio/images/_masked_image.py,sha256=YhbBzgPZMav6rX0WYue1BaxAzEIsfaQrxUIOK6ZWZcw,18848
26
26
  ngio/images/_ome_zarr_container.py,sha256=UJERXEgBkwclpLaHzWqUIQc6P-TG4zYuKuxPukJGa4Y,38433
27
27
  ngio/images/_table_ops.py,sha256=jFv_AMqoB4JBpoWsMtZppZVW7dAOC_u-JpfNm8b33kY,15292
@@ -74,12 +74,12 @@ ngio/tables/v1/_roi_table.py,sha256=b7lwjsdCSUOCMT6Lx4hwAqGBKC25Q5bdzoK3DQWnAQM,
74
74
  ngio/transforms/__init__.py,sha256=JA0-Ui7skbXkm9ofN-AEhU1FTLutkMkwTdVD-310frQ,113
75
75
  ngio/transforms/_zoom.py,sha256=otyE-vxFnywUJ8U4mHjat-bNG_7_jv62ckTpqDMxyVQ,550
76
76
  ngio/utils/__init__.py,sha256=XPYh8ehC7uXNU2cFFXZAw-S3DpWpX1Yq2xGkffZv5vI,1142
77
- ngio/utils/_datasets.py,sha256=6GtxfPkjutNaeg5BHuJDBP0GudvQXHLU6mmHp_o0bGA,5650
77
+ ngio/utils/_datasets.py,sha256=YOV367skFA8nbKAqbyK0EsUU7E9UId_u5ButuLesrzk,5896
78
78
  ngio/utils/_errors.py,sha256=pKQ12LUjQLYE1nUawemA5h7HsgznjaSvV1n2PQU33N0,759
79
79
  ngio/utils/_fractal_fsspec_store.py,sha256=RdcCFOgHexRKX9zZvJV5RI-5OPc7VOPS6q_IeRxm24I,1548
80
80
  ngio/utils/_logger.py,sha256=N5W0a_xwze4blS1MolidBkTMbjTbg8GPguJZNun3mAE,1392
81
81
  ngio/utils/_zarr_utils.py,sha256=GUOcAx02IcfrJ5tIdKu8ChtRUUaBbkkddW5jaCCYnS8,13797
82
- ngio-0.4.7.dist-info/METADATA,sha256=c1iZJEnZdbY9MjC2hnq7fm7lORSIjhz920Z7S-P7SAI,6137
83
- ngio-0.4.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
84
- ngio-0.4.7.dist-info/licenses/LICENSE,sha256=UgN_a1QCeNh9rZWfz-wORQFxE3elQzLWPQaoK6N6fxQ,1502
85
- ngio-0.4.7.dist-info/RECORD,,
82
+ ngio-0.4.8.dist-info/METADATA,sha256=Z01svPND2BsHMW6i-PYzEQNiSZI-YEgvWnVHmbEZHhk,6144
83
+ ngio-0.4.8.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
84
+ ngio-0.4.8.dist-info/licenses/LICENSE,sha256=UgN_a1QCeNh9rZWfz-wORQFxE3elQzLWPQaoK6N6fxQ,1502
85
+ ngio-0.4.8.dist-info/RECORD,,
File without changes