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.
Files changed (82) hide show
  1. {ngio-0.1.3 → ngio-0.1.4}/PKG-INFO +1 -1
  2. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/fractal_image_meta.py +2 -5
  3. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/tables_group.py +5 -2
  4. {ngio-0.1.3 → ngio-0.1.4}/.copier-answers.yml +0 -0
  5. {ngio-0.1.3 → ngio-0.1.4}/.gitattributes +0 -0
  6. {ngio-0.1.3 → ngio-0.1.4}/.github/ISSUE_TEMPLATE.md +0 -0
  7. {ngio-0.1.3 → ngio-0.1.4}/.github/TEST_FAIL_TEMPLATE.md +0 -0
  8. {ngio-0.1.3 → ngio-0.1.4}/.github/dependabot.yml +0 -0
  9. {ngio-0.1.3 → ngio-0.1.4}/.github/workflows/build_docs.yml +0 -0
  10. {ngio-0.1.3 → ngio-0.1.4}/.github/workflows/ci.yml +0 -0
  11. {ngio-0.1.3 → ngio-0.1.4}/.gitignore +0 -0
  12. {ngio-0.1.3 → ngio-0.1.4}/.pre-commit-config.yaml +0 -0
  13. {ngio-0.1.3 → ngio-0.1.4}/LICENSE +0 -0
  14. {ngio-0.1.3 → ngio-0.1.4}/README.md +0 -0
  15. {ngio-0.1.3 → ngio-0.1.4}/_typos.toml +0 -0
  16. {ngio-0.1.3 → ngio-0.1.4}/docs/api/core.md +0 -0
  17. {ngio-0.1.3 → ngio-0.1.4}/docs/getting-started.md +0 -0
  18. {ngio-0.1.3 → ngio-0.1.4}/docs/index.md +0 -0
  19. {ngio-0.1.3 → ngio-0.1.4}/docs/notebooks/basic_usage.ipynb +0 -0
  20. {ngio-0.1.3 → ngio-0.1.4}/docs/notebooks/image.ipynb +0 -0
  21. {ngio-0.1.3 → ngio-0.1.4}/docs/notebooks/processing.ipynb +0 -0
  22. {ngio-0.1.3 → ngio-0.1.4}/mkdocs.yml +0 -0
  23. {ngio-0.1.3 → ngio-0.1.4}/pyproject.toml +0 -0
  24. {ngio-0.1.3 → ngio-0.1.4}/setup_data.sh +0 -0
  25. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/__init__.py +0 -0
  26. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/__init__.py +0 -0
  27. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/dimensions.py +0 -0
  28. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/image_handler.py +0 -0
  29. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/image_like_handler.py +0 -0
  30. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/label_handler.py +0 -0
  31. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/ngff_image.py +0 -0
  32. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/roi.py +0 -0
  33. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/core/utils.py +0 -0
  34. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/io/__init__.py +0 -0
  35. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/io/_zarr.py +0 -0
  36. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/io/_zarr_array_utils.py +0 -0
  37. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/io/_zarr_group_utils.py +0 -0
  38. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/iterators/__init__.py +0 -0
  39. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/__init__.py +0 -0
  40. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/meta_handler.py +0 -0
  41. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/utils.py +0 -0
  42. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/v04/__init__.py +0 -0
  43. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/v04/specs.py +0 -0
  44. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/ngff_meta/v04/zarr_utils.py +0 -0
  45. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/pipes/__init__.py +0 -0
  46. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/pipes/_slicer_transforms.py +0 -0
  47. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/pipes/_transforms.py +0 -0
  48. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/pipes/_zoom_utils.py +0 -0
  49. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/pipes/data_pipe.py +0 -0
  50. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/__init__.py +0 -0
  51. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/_ad_reader.py +0 -0
  52. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/_utils.py +0 -0
  53. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/v1/__init__.py +0 -0
  54. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/v1/_generic_table.py +0 -0
  55. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/v1/feature_tables.py +0 -0
  56. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/v1/masking_roi_tables.py +0 -0
  57. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/tables/v1/roi_tables.py +0 -0
  58. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/utils/__init__.py +0 -0
  59. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/utils/_common_types.py +0 -0
  60. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/utils/_errors.py +0 -0
  61. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/utils/_logger.py +0 -0
  62. {ngio-0.1.3 → ngio-0.1.4}/src/ngio/utils/_pydantic_utils.py +0 -0
  63. {ngio-0.1.3 → ngio-0.1.4}/tests/core/conftest.py +0 -0
  64. {ngio-0.1.3 → ngio-0.1.4}/tests/core/test_image_handler.py +0 -0
  65. {ngio-0.1.3 → ngio-0.1.4}/tests/core/test_image_like_handler.py +0 -0
  66. {ngio-0.1.3 → ngio-0.1.4}/tests/core/test_label_handler.py +0 -0
  67. {ngio-0.1.3 → ngio-0.1.4}/tests/core/test_ngff_image.py +0 -0
  68. {ngio-0.1.3 → ngio-0.1.4}/tests/core/test_roi.py +0 -0
  69. {ngio-0.1.3 → ngio-0.1.4}/tests/io/conftest.py +0 -0
  70. {ngio-0.1.3 → ngio-0.1.4}/tests/io/test_zarr_group_utils.py +0 -0
  71. {ngio-0.1.3 → ngio-0.1.4}/tests/ngff_meta/conftest.py +0 -0
  72. {ngio-0.1.3 → ngio-0.1.4}/tests/ngff_meta/test_fractal_image_meta.py +0 -0
  73. {ngio-0.1.3 → ngio-0.1.4}/tests/ngff_meta/test_pixel_size.py +0 -0
  74. {ngio-0.1.3 → ngio-0.1.4}/tests/ngff_meta/test_utils.py +0 -0
  75. {ngio-0.1.3 → ngio-0.1.4}/tests/ngff_meta/test_v04.py +0 -0
  76. {ngio-0.1.3 → ngio-0.1.4}/tests/pipes/conftest.py +0 -0
  77. {ngio-0.1.3 → ngio-0.1.4}/tests/pipes/test_zoom.py +0 -0
  78. {ngio-0.1.3 → ngio-0.1.4}/tests/tables/conftest.py +0 -0
  79. {ngio-0.1.3 → ngio-0.1.4}/tests/tables/test_table_conversion.py +0 -0
  80. {ngio-0.1.3 → ngio-0.1.4}/tests/tables/test_table_group.py +0 -0
  81. {ngio-0.1.3 → ngio-0.1.4}/tests/tables/test_v1_tables.py +0 -0
  82. {ngio-0.1.3 → ngio-0.1.4}/tests/tables/test_validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ngio
3
- Version: 0.1.3
3
+ Version: 0.1.4
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
@@ -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
- if isinstance(return_type, str):
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
- assert isinstance(types[0], TimeUnits)
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 ["roi_table", "feature_table", "masking_roi_table"]:
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: 'roi', 'feature', 'masking_roi'."
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