Skip to content

Commit 005279c

Browse files
committed
more cleanup
1 parent 681d945 commit 005279c

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

src/zarr/testing/strategies.py

+2-19
Original file line numberDiff line numberDiff line change
@@ -77,30 +77,13 @@ def arrays(
7777
fill_value = draw(npst.from_dtype(nparray.dtype))
7878
# compressor = draw(compressors)
7979

80-
# TODO: clean this up
81-
# if path is None and name is None:
82-
# array_path = None
83-
# array_name = None
84-
# elif path is None and name is not None:
85-
# array_path = f"{name}"
86-
# array_name = f"/{name}"
87-
# elif path is not None and name is None:
88-
# array_path = path
89-
# array_name = None
90-
# elif path == "/":
91-
# assert name is not None
92-
# array_path = name
93-
# array_name = "/" + name
94-
# else:
95-
# assert name is not None
96-
# array_path = f"{path}/{name}"
97-
# array_name = "/" + array_path
98-
9980
expected_attrs = {} if attributes is None else attributes
10081

10182
array_path = path + ("/" if not path.endswith("/") else "") + name
83+
print("----- creating a new root group")
10284
root = Group.create(store)
10385

86+
print(f"----- creating a new array: {array_path=}, {nparray.dtype=}")
10487
a = root.create_array(
10588
array_path,
10689
shape=nparray.shape,

0 commit comments

Comments
 (0)