ngio 0.2.1__tar.gz → 0.2.3__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.2.1 → ngio-0.2.3}/PKG-INFO +3 -1
- {ngio-0.2.1 → ngio-0.2.3}/docs/getting_started/5_hcs.md +2 -2
- {ngio-0.2.1 → ngio-0.2.3}/pyproject.toml +2 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/__init__.py +20 -2
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/common/_pyramid.py +5 -1
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/common/_roi.py +2 -2
- ngio-0.2.3/src/ngio/hcs/__init__.py +19 -0
- ngio-0.2.3/src/ngio/hcs/plate.py +929 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/images/abstract_image.py +11 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/images/create.py +25 -36
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/images/image.py +80 -6
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/images/label.py +38 -9
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/images/ome_zarr_container.py +70 -33
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/__init__.py +5 -3
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/ngio_specs/__init__.py +10 -2
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/ngio_specs/_axes.py +90 -65
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/ngio_specs/_dataset.py +46 -8
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/ngio_specs/_ngio_hcs.py +242 -70
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/ngio_specs/_ngio_image.py +49 -11
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/ngio_specs/_pixel_size.py +28 -11
- ngio-0.2.3/src/ngio/ome_zarr_meta/v04/_custom_models.py +18 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/v04/_v04_spec_utils.py +2 -2
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/tables/_validators.py +1 -83
- ngio-0.2.3/src/ngio/tables/backends/__init__.py +34 -0
- ngio-0.2.3/src/ngio/tables/backends/_abstract_backend.py +256 -0
- ngio-0.2.3/src/ngio/tables/backends/_anndata_utils.py +92 -0
- ngio-0.2.3/src/ngio/tables/backends/_anndata_v1.py +73 -0
- ngio-0.2.3/src/ngio/tables/backends/_csv_v1.py +162 -0
- ngio-0.2.3/src/ngio/tables/backends/_json_v1.py +92 -0
- ngio-0.2.3/src/ngio/tables/backends/_table_backends.py +182 -0
- ngio-0.2.3/src/ngio/tables/backends/_utils.py +458 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/tables/tables_container.py +3 -1
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/tables/v1/_feature_table.py +20 -11
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/tables/v1/_generic_table.py +20 -15
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/tables/v1/_roi_table.py +7 -9
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/utils/_zarr_utils.py +46 -32
- ngio-0.2.3/tests/data/v04/meta/base_ome_zarr_well_meta.json +10 -0
- ngio-0.2.3/tests/data/v04/meta/ome_zarr_well_path_normalization_meta.json +13 -0
- ngio-0.2.3/tests/unit/hcs/test_plate.py +172 -0
- ngio-0.2.3/tests/unit/hcs/test_well.py +35 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/images/test_omezarr_container.py +13 -5
- {ngio-0.2.1/tests/unit/test_ome_zarr_meta → ngio-0.2.3/tests/unit/ome_zarr_meta}/test_unit_ngio_specs.py +15 -16
- {ngio-0.2.1/tests/unit/test_ome_zarr_meta → ngio-0.2.3/tests/unit/ome_zarr_meta}/test_unit_v04_utils.py +32 -1
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/tables/test_backends.py +89 -30
- ngio-0.2.3/tests/unit/tables/test_backends_utils.py +194 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/utils/test_zarr_utils.py +5 -2
- ngio-0.2.1/src/ngio/hcs/__init__.py +0 -5
- ngio-0.2.1/src/ngio/hcs/plate.py +0 -451
- ngio-0.2.1/src/ngio/tables/backends/__init__.py +0 -8
- ngio-0.2.1/src/ngio/tables/backends/_abstract_backend.py +0 -71
- ngio-0.2.1/src/ngio/tables/backends/_anndata_utils.py +0 -198
- ngio-0.2.1/src/ngio/tables/backends/_anndata_v1.py +0 -76
- ngio-0.2.1/src/ngio/tables/backends/_json_v1.py +0 -56
- ngio-0.2.1/src/ngio/tables/backends/_table_backends.py +0 -102
- ngio-0.2.1/tests/unit/hcs/test_plate.py +0 -57
- {ngio-0.2.1 → ngio-0.2.3}/.copier-answers.yml +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/.gitattributes +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/.github/ISSUE_TEMPLATE.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/.github/TEST_FAIL_TEMPLATE.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/.github/dependabot.yml +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/.github/scripts/download_data.sh +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/.github/workflows/build_docs.yml +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/.github/workflows/ci.yml +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/.gitignore +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/.pre-commit-config.yaml +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/LICENSE +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/README.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/_typos.toml +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/api/common.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/api/hcs.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/api/images.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/api/ngio.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/api/tables.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/api/utils.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/code_of_conduct.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/contributing.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/getting_started/0_quickstart.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/getting_started/1_ome_zarr_containers.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/getting_started/2_images.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/getting_started/3_tables.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/getting_started/4_masked_images.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/index.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/tutorials/feature_extraction.ipynb +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/tutorials/hcs_processing.ipynb +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/tutorials/image_processing.ipynb +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/docs/tutorials/image_segmentation.ipynb +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/index.md +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/mkdocs.yml +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/common/__init__.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/common/_array_pipe.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/common/_axes_transforms.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/common/_common_types.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/common/_dimensions.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/common/_masking_roi.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/common/_slicer.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/common/_zoom.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/images/__init__.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/images/masked_image.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/_meta_handlers.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/ngio_specs/_channels.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/ome_zarr_meta/v04/__init__.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/tables/__init__.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/tables/v1/__init__.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/utils/__init__.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/utils/_datasets.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/utils/_errors.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/utils/_fractal_fsspec_store.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/src/ngio/utils/_logger.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/conftest.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_c1yx.zarr/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_c1yx.zarr/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_c1yx.zarr/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_c1yx.zarr/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_c1yx.zarr/labels/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_c1yx.zarr/labels/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_c1yx.zarr/labels/label/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_c1yx.zarr/labels/label/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_c1yx.zarr/labels/label/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_c1yx.zarr/labels/label/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_cyx.zarr/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_cyx.zarr/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_cyx.zarr/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_cyx.zarr/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_cyx.zarr/labels/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_cyx.zarr/labels/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_cyx.zarr/labels/label/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_cyx.zarr/labels/label/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_cyx.zarr/labels/label/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_cyx.zarr/labels/label/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_czyx.zarr/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_czyx.zarr/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_czyx.zarr/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_czyx.zarr/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_czyx.zarr/labels/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_czyx.zarr/labels/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_czyx.zarr/labels/label/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_czyx.zarr/labels/label/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_czyx.zarr/labels/label/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_czyx.zarr/labels/label/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tcyx.zarr/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tcyx.zarr/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tcyx.zarr/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tcyx.zarr/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tcyx.zarr/labels/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tcyx.zarr/labels/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tcyx.zarr/labels/label/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tcyx.zarr/labels/label/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tcyx.zarr/labels/label/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tcyx.zarr/labels/label/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tczyx.zarr/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tczyx.zarr/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tczyx.zarr/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tczyx.zarr/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tczyx.zarr/labels/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tczyx.zarr/labels/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tczyx.zarr/labels/label/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tczyx.zarr/labels/label/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tczyx.zarr/labels/label/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tczyx.zarr/labels/label/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tyx.zarr/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tyx.zarr/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tyx.zarr/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tyx.zarr/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tyx.zarr/labels/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tyx.zarr/labels/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tyx.zarr/labels/label/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tyx.zarr/labels/label/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tyx.zarr/labels/label/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tyx.zarr/labels/label/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tzyx.zarr/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tzyx.zarr/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tzyx.zarr/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tzyx.zarr/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tzyx.zarr/labels/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tzyx.zarr/labels/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tzyx.zarr/labels/label/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tzyx.zarr/labels/label/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tzyx.zarr/labels/label/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_tzyx.zarr/labels/label/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_yx.zarr/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_yx.zarr/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_yx.zarr/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_yx.zarr/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_yx.zarr/labels/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_yx.zarr/labels/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_yx.zarr/labels/label/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_yx.zarr/labels/label/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_yx.zarr/labels/label/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_yx.zarr/labels/label/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_zyx.zarr/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_zyx.zarr/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_zyx.zarr/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_zyx.zarr/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_zyx.zarr/labels/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_zyx.zarr/labels/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_zyx.zarr/labels/label/.zattrs +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_zyx.zarr/labels/label/.zgroup +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_zyx.zarr/labels/label/0/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/images/test_image_zyx.zarr/labels/label/1/.zarray +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/meta/base_ome_zarr_image_meta.json +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/meta/base_ome_zarr_image_meta_wrong_axis_order.json +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/data/v04/meta/base_ome_zarr_label_meta.json +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/common/test_dimensions.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/common/test_pyramid.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/common/test_roi.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/images/test_create.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/images/test_images.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/images/test_masked_images.py +0 -0
- {ngio-0.2.1/tests/unit/test_ome_zarr_meta → ngio-0.2.3/tests/unit/ome_zarr_meta}/test_image_handler.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/tables/test_feature_table.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/tables/test_generic_table.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/tables/test_masking_roi_table_v1.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/tables/test_roi_table_v1.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/tables/test_table_group.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/tables/test_validators.py +0 -0
- {ngio-0.2.1 → ngio-0.2.3}/tests/unit/utils/test_download_datasets.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ngio
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Next Generation file format IO
|
|
5
5
|
Project-URL: homepage, https://github.com/lorenzocerrone/ngio
|
|
6
6
|
Project-URL: repository, https://github.com/lorenzocerrone/ngio
|
|
@@ -23,7 +23,9 @@ Requires-Dist: filelock
|
|
|
23
23
|
Requires-Dist: numpy
|
|
24
24
|
Requires-Dist: ome-zarr-models
|
|
25
25
|
Requires-Dist: pandas>=1.2.0
|
|
26
|
+
Requires-Dist: polars
|
|
26
27
|
Requires-Dist: pooch
|
|
28
|
+
Requires-Dist: pyarrow
|
|
27
29
|
Requires-Dist: pydantic
|
|
28
30
|
Requires-Dist: requests
|
|
29
31
|
Requires-Dist: xarray
|
|
@@ -38,8 +38,8 @@ The `OmeZarrPlate` object provides a high-level overview of the plate, including
|
|
|
38
38
|
=== "Acquisitions"
|
|
39
39
|
Show the acquisitions ids:
|
|
40
40
|
```pycon exec="true" source="console" session="hcs_plate"
|
|
41
|
-
>>> ome_zarr_plate.
|
|
42
|
-
>>> print(ome_zarr_plate.
|
|
41
|
+
>>> ome_zarr_plate.acquisition_ids
|
|
42
|
+
>>> print(ome_zarr_plate.acquisition_ids) # markdown-exec: hide
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## Retrieving the path to the images
|
|
@@ -10,7 +10,14 @@ __author__ = "Lorenzo Cerrone"
|
|
|
10
10
|
__email__ = "lorenzo.cerrone@uzh.ch"
|
|
11
11
|
|
|
12
12
|
from ngio.common import ArrayLike, Dimensions, Roi, RoiPixels
|
|
13
|
-
from ngio.hcs import
|
|
13
|
+
from ngio.hcs import (
|
|
14
|
+
OmeZarrPlate,
|
|
15
|
+
OmeZarrWell,
|
|
16
|
+
create_empty_plate,
|
|
17
|
+
create_empty_well,
|
|
18
|
+
open_ome_zarr_plate,
|
|
19
|
+
open_ome_zarr_well,
|
|
20
|
+
)
|
|
14
21
|
from ngio.images import (
|
|
15
22
|
Image,
|
|
16
23
|
Label,
|
|
@@ -20,24 +27,35 @@ from ngio.images import (
|
|
|
20
27
|
open_image,
|
|
21
28
|
open_ome_zarr_container,
|
|
22
29
|
)
|
|
23
|
-
from ngio.ome_zarr_meta.ngio_specs import
|
|
30
|
+
from ngio.ome_zarr_meta.ngio_specs import (
|
|
31
|
+
AxesSetup,
|
|
32
|
+
DefaultNgffVersion,
|
|
33
|
+
ImageInWellPath,
|
|
34
|
+
NgffVersions,
|
|
35
|
+
PixelSize,
|
|
36
|
+
)
|
|
24
37
|
|
|
25
38
|
__all__ = [
|
|
26
39
|
"ArrayLike",
|
|
27
40
|
"AxesSetup",
|
|
41
|
+
"DefaultNgffVersion",
|
|
28
42
|
"Dimensions",
|
|
29
43
|
"Image",
|
|
30
44
|
"ImageInWellPath",
|
|
31
45
|
"Label",
|
|
46
|
+
"NgffVersions",
|
|
32
47
|
"OmeZarrContainer",
|
|
33
48
|
"OmeZarrPlate",
|
|
49
|
+
"OmeZarrWell",
|
|
34
50
|
"PixelSize",
|
|
35
51
|
"Roi",
|
|
36
52
|
"RoiPixels",
|
|
37
53
|
"create_empty_ome_zarr",
|
|
38
54
|
"create_empty_plate",
|
|
55
|
+
"create_empty_well",
|
|
39
56
|
"create_ome_zarr_from_array",
|
|
40
57
|
"open_image",
|
|
41
58
|
"open_ome_zarr_container",
|
|
42
59
|
"open_ome_zarr_plate",
|
|
60
|
+
"open_ome_zarr_well",
|
|
43
61
|
]
|
|
@@ -190,12 +190,16 @@ def init_empty_pyramid(
|
|
|
190
190
|
"The shape and chunks must have the same number of dimensions."
|
|
191
191
|
)
|
|
192
192
|
|
|
193
|
+
if chunks is not None:
|
|
194
|
+
chunks = [min(c, s) for c, s in zip(chunks, ref_shape, strict=True)]
|
|
195
|
+
|
|
193
196
|
if len(ref_shape) != len(scaling_factors):
|
|
194
197
|
raise NgioValueError(
|
|
195
198
|
"The shape and scaling factor must have the same number of dimensions."
|
|
196
199
|
)
|
|
197
200
|
|
|
198
|
-
root_group
|
|
201
|
+
root_group = open_group_wrapper(store, mode=mode)
|
|
202
|
+
|
|
199
203
|
for path in paths:
|
|
200
204
|
if any(s < 1 for s in ref_shape):
|
|
201
205
|
raise NgioValueError(
|
|
@@ -10,7 +10,7 @@ import numpy as np
|
|
|
10
10
|
from pydantic import BaseModel, ConfigDict, Field
|
|
11
11
|
|
|
12
12
|
from ngio.common._dimensions import Dimensions
|
|
13
|
-
from ngio.ome_zarr_meta.ngio_specs import PixelSize, SpaceUnits
|
|
13
|
+
from ngio.ome_zarr_meta.ngio_specs import DefaultSpaceUnit, PixelSize, SpaceUnits
|
|
14
14
|
from ngio.utils import NgioValueError
|
|
15
15
|
|
|
16
16
|
|
|
@@ -36,7 +36,7 @@ class Roi(BaseModel):
|
|
|
36
36
|
x: float = 0.0
|
|
37
37
|
y: float = 0.0
|
|
38
38
|
z: float = 0.0
|
|
39
|
-
unit: SpaceUnits = Field(
|
|
39
|
+
unit: SpaceUnits | str | None = Field(DefaultSpaceUnit, repr=False)
|
|
40
40
|
|
|
41
41
|
model_config = ConfigDict(extra="allow")
|
|
42
42
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""OME-Zarr HCS objects models."""
|
|
2
|
+
|
|
3
|
+
from ngio.hcs.plate import (
|
|
4
|
+
OmeZarrPlate,
|
|
5
|
+
OmeZarrWell,
|
|
6
|
+
create_empty_plate,
|
|
7
|
+
create_empty_well,
|
|
8
|
+
open_ome_zarr_plate,
|
|
9
|
+
open_ome_zarr_well,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"OmeZarrPlate",
|
|
14
|
+
"OmeZarrWell",
|
|
15
|
+
"create_empty_plate",
|
|
16
|
+
"create_empty_well",
|
|
17
|
+
"open_ome_zarr_plate",
|
|
18
|
+
"open_ome_zarr_well",
|
|
19
|
+
]
|