-
-
Notifications
You must be signed in to change notification settings - Fork 366
Closed
Description
The name of an array can be None, which is a bit odd since None is not a valid location in a file system. Can someone explain what we are expressing by allowing Array.name to be None? Note that this is carried over from v2, and the docstring references h5py.
zarr-python/src/zarr/core/array.py
Lines 813 to 827 in d6508b5
| def name(self) -> str | None: | |
| """Array name following h5py convention. | |
| Returns | |
| ------- | |
| str | |
| The name of the array. | |
| """ | |
| if self.path: | |
| # follow h5py convention: add leading slash | |
| name = self.path | |
| if name[0] != "/": | |
| name = "/" + name | |
| return name | |
| return None |
Metadata
Metadata
Assignees
Labels
No labels