Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Sep 17, 2024
1 parent 681d945 commit 33f20d3
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/zarr/testing/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,6 @@ def arrays(
fill_value = draw(npst.from_dtype(nparray.dtype))
# compressor = draw(compressors)

# TODO: clean this up
# if path is None and name is None:
# array_path = None
# array_name = None
# elif path is None and name is not None:
# array_path = f"{name}"
# array_name = f"/{name}"
# elif path is not None and name is None:
# array_path = path
# array_name = None
# elif path == "/":
# assert name is not None
# array_path = name
# array_name = "/" + name
# else:
# assert name is not None
# array_path = f"{path}/{name}"
# array_name = "/" + array_path

expected_attrs = {} if attributes is None else attributes

array_path = path + ("/" if not path.endswith("/") else "") + name
Expand Down

0 comments on commit 33f20d3

Please sign in to comment.