ngio 0.5.0b4__py3-none-any.whl → 0.5.0b5__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.
ngio/common/_pyramid.py CHANGED
@@ -92,16 +92,7 @@ def _on_disk_coarsen(
92
92
 
93
93
  coarsening_setup = {}
94
94
  for i, s in enumerate(_scale):
95
- factor = 1 / s
96
- # This check is very strict, but it is necessary to avoid
97
- # a few pixels shift in the coarsening
98
- # We could add a tolerance
99
- if factor.is_integer():
100
- coarsening_setup[i] = int(factor)
101
- else:
102
- raise NgioValueError(
103
- f"Coarsening factor must be an integer, got {factor} on axis {i}"
104
- )
95
+ coarsening_setup[i] = int(np.round(1 / s))
105
96
 
106
97
  out_target = da.coarsen(
107
98
  aggregation_function, source_array, coarsening_setup, trim_excess=True
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.5.0b4
3
+ Version: 0.5.0b5
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
@@ -13,8 +13,9 @@ Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
16
17
  Classifier: Typing :: Typed
17
- Requires-Python: <3.14,>=3.11
18
+ Requires-Python: <3.15,>=3.11
18
19
  Requires-Dist: aiohttp
19
20
  Requires-Dist: anndata
20
21
  Requires-Dist: dask[array]<2025.11.0
@@ -2,7 +2,7 @@ ngio/__init__.py,sha256=kyInohhWrBs4qkbMYFIQeAiy1CDpvbSOtXB4buFocbw,1535
2
2
  ngio/common/__init__.py,sha256=F3zAHQIhwig1xUA-SpmFVRtMeOrEj926-nHWhj-wS6c,684
3
3
  ngio/common/_dimensions.py,sha256=w8PYgyWxA8hgJETjFbw5CXf7WrasCL5FbzgfL1in86M,11361
4
4
  ngio/common/_masking_roi.py,sha256=rWOvhT08KfxX5djvUsX6LsUVofyU0Fq5LcUmpOYElDg,4757
5
- ngio/common/_pyramid.py,sha256=JRqVm9eFyxHi1a2hCcAoTJU3L8vctRHbkVWkskyQG_U,14354
5
+ ngio/common/_pyramid.py,sha256=kvtacAhJb8zcV5ungNPYRDBShgti-kxtD_4LdBpnyDw,14012
6
6
  ngio/common/_roi.py,sha256=G2KICRbxlYenbc1qmKmdxLrfJRmqYSUbeaBdEuUYW-Q,11415
7
7
  ngio/common/_synt_images_utils.py,sha256=B6uYOW1NyrM06YMR-csca3_YnAAkPRTbvnbLdy9tk9E,3188
8
8
  ngio/common/_zoom.py,sha256=U01c-vqXjzZkrpd9Yvs24frVfTls_xPJeeaFCGmUwYI,6727
@@ -78,11 +78,11 @@ ngio/transforms/__init__.py,sha256=JA0-Ui7skbXkm9ofN-AEhU1FTLutkMkwTdVD-310frQ,1
78
78
  ngio/transforms/_zoom.py,sha256=otyE-vxFnywUJ8U4mHjat-bNG_7_jv62ckTpqDMxyVQ,550
79
79
  ngio/utils/__init__.py,sha256=d2OHQGMFPpf8-_ipuqquxtqCNGJpX5yXt34A65nScUU,1037
80
80
  ngio/utils/_cache.py,sha256=Ey9fgc_BTdMyqg6c80C0CuGDhOafln8-3e_1MQ0MFzw,1283
81
- ngio/utils/_datasets.py,sha256=6GtxfPkjutNaeg5BHuJDBP0GudvQXHLU6mmHp_o0bGA,5650
81
+ ngio/utils/_datasets.py,sha256=YOV367skFA8nbKAqbyK0EsUU7E9UId_u5ButuLesrzk,5896
82
82
  ngio/utils/_errors.py,sha256=pKQ12LUjQLYE1nUawemA5h7HsgznjaSvV1n2PQU33N0,759
83
83
  ngio/utils/_fractal_fsspec_store.py,sha256=RdcCFOgHexRKX9zZvJV5RI-5OPc7VOPS6q_IeRxm24I,1548
84
84
  ngio/utils/_zarr_utils.py,sha256=MVbW-a0S3iuzMaknqkliJa_lp8i6mEO4Q2YN2XxmeDw,18158
85
- ngio-0.5.0b4.dist-info/METADATA,sha256=PoJXudr2QpL-O1So3ryYySSeQ-3oQdxIqPIZx2B2ejs,6331
86
- ngio-0.5.0b4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
87
- ngio-0.5.0b4.dist-info/licenses/LICENSE,sha256=UgN_a1QCeNh9rZWfz-wORQFxE3elQzLWPQaoK6N6fxQ,1502
88
- ngio-0.5.0b4.dist-info/RECORD,,
85
+ ngio-0.5.0b5.dist-info/METADATA,sha256=kDswYTjCsCUVZUZc2TA-tNK9CZZ4PhncumU74hE8vXc,6382
86
+ ngio-0.5.0b5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
87
+ ngio-0.5.0b5.dist-info/licenses/LICENSE,sha256=UgN_a1QCeNh9rZWfz-wORQFxE3elQzLWPQaoK6N6fxQ,1502
88
+ ngio-0.5.0b5.dist-info/RECORD,,
File without changes