Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Jul 29, 2024
1 parent 79e4760 commit 93b389f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/unit/test_zarrio.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@ def test_force_open_without_consolidated_fails(self):


class TestDimensionLabels(BuildDatasetShapeMixin):
"""
This is to test setting the dimension_labels as a zarr attribute '_ARRAY_DIMENSIONS'.
Workflow:
i) We need to define a `get_dataset_inc_spec` to set the dim in the spec (via BuildDatasetShapeMixin)
ii) Create and write a BarDataHolder with a BarData.
iii) Read and check that the _ARRAY_DIMENSIONS attribute is set.
"""
def tearDown(self):
shutil.rmtree(self.store)

Expand Down Expand Up @@ -214,4 +222,3 @@ def test_build(self):
with ZarrIO(self.store, manager=self.manager, mode='r') as io:
file = io.read()
self.assertEqual(file.bar_datas[0].data.attrs['_ARRAY_DIMENSIONS'], ['a', 'b'])

0 comments on commit 93b389f

Please sign in to comment.