ngio 0.1.3__tar.gz → 0.1.4__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.
- {ngio-0.1.3 → ngio-0.1.4}/PKG-INFO +1 -1
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/fractal_image_meta.py +2 -5
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/tables_group.py +5 -2
- {ngio-0.1.3 → ngio-0.1.4}/.copier-answers.yml +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/.gitattributes +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/.github/ISSUE_TEMPLATE.md +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/.github/TEST_FAIL_TEMPLATE.md +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/.github/dependabot.yml +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/.github/workflows/build_docs.yml +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/.github/workflows/ci.yml +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/.gitignore +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/.pre-commit-config.yaml +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/LICENSE +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/README.md +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/_typos.toml +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/docs/api/core.md +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/docs/getting-started.md +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/docs/index.md +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/docs/notebooks/basic_usage.ipynb +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/docs/notebooks/image.ipynb +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/docs/notebooks/processing.ipynb +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/mkdocs.yml +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/pyproject.toml +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/setup_data.sh +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/__init__.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/__init__.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/dimensions.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/image_handler.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/image_like_handler.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/label_handler.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/ngff_image.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/roi.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/utils.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/io/__init__.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/io/_zarr.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/io/_zarr_array_utils.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/io/_zarr_group_utils.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/iterators/__init__.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/__init__.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/meta_handler.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/utils.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/v04/__init__.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/v04/specs.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/v04/zarr_utils.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/pipes/__init__.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/pipes/_slicer_transforms.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/pipes/_transforms.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/pipes/_zoom_utils.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/pipes/data_pipe.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/__init__.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/_ad_reader.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/_utils.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/v1/__init__.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/v1/_generic_table.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/v1/feature_tables.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/v1/masking_roi_tables.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/v1/roi_tables.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/utils/__init__.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/utils/_common_types.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/utils/_errors.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/utils/_logger.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/src/ngio/utils/_pydantic_utils.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/core/conftest.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/core/test_image_handler.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/core/test_image_like_handler.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/core/test_label_handler.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/core/test_ngff_image.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/core/test_roi.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/io/conftest.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/io/test_zarr_group_utils.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/ngff_meta/conftest.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/ngff_meta/test_fractal_image_meta.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/ngff_meta/test_pixel_size.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/ngff_meta/test_utils.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/ngff_meta/test_v04.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/pipes/conftest.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/pipes/test_zoom.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/tables/conftest.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/tables/test_table_conversion.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/tables/test_table_group.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/tables/test_v1_tables.py +0 -0
- {ngio-0.1.3 → ngio-0.1.4}/tests/tables/test_validation.py +0 -0
|
@@ -823,9 +823,7 @@ class Dataset:
|
|
|
823
823
|
raise ValueError("Spatial axes must have a unit.")
|
|
824
824
|
if return_type not in SpaceUnits.allowed_names():
|
|
825
825
|
raise ValueError(f"Invalid space unit {return_type}.")
|
|
826
|
-
|
|
827
|
-
return_type = SpaceUnits(return_type)
|
|
828
|
-
return return_type
|
|
826
|
+
return SpaceUnits(return_type)
|
|
829
827
|
|
|
830
828
|
@property
|
|
831
829
|
def pixel_size(self) -> PixelSize:
|
|
@@ -850,8 +848,7 @@ class Dataset:
|
|
|
850
848
|
if len(types) == 0:
|
|
851
849
|
return None
|
|
852
850
|
elif len(types) == 1:
|
|
853
|
-
|
|
854
|
-
return types[0]
|
|
851
|
+
return TimeUnits(types[0])
|
|
855
852
|
else:
|
|
856
853
|
raise ValueError("Multiple time axes found. Only one time axis is allowed.")
|
|
857
854
|
|
|
@@ -156,14 +156,17 @@ class TableGroup:
|
|
|
156
156
|
|
|
157
157
|
list_of_tables = self._get_list_of_tables()
|
|
158
158
|
self._validate_list_of_tables(list_of_tables=list_of_tables)
|
|
159
|
+
|
|
160
|
+
all_table_types = ["roi_table", "feature_table", "masking_roi_table"]
|
|
161
|
+
|
|
159
162
|
if table_type is None:
|
|
160
163
|
return list_of_tables
|
|
161
164
|
|
|
162
165
|
else:
|
|
163
|
-
if table_type not in
|
|
166
|
+
if table_type not in all_table_types:
|
|
164
167
|
raise ValueError(
|
|
165
168
|
f"Table type {table_type} not recognized. "
|
|
166
|
-
" Allowed values are:
|
|
169
|
+
f" Allowed values are: {all_table_types}"
|
|
167
170
|
)
|
|
168
171
|
list_of_typed_tables = []
|
|
169
172
|
for table_name in list_of_tables:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|