Skip to content

Commit 5a105eb

Browse files
committed
Revert "tmp: debug"
This reverts commit ee9cdbc.
1 parent 2d3d286 commit 5a105eb

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

zarr/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,9 +1952,7 @@ def _process_for_setitem(self, ckey, chunk_selection, value, fields=None):
19521952
return self._encode_chunk(chunk)
19531953

19541954
def _chunk_key(self, chunk_coords):
1955-
rv = self._key_prefix + self._dimension_separator.join(map(str, chunk_coords))
1956-
print(f"CHUNK: {chunk_coords} --> {rv} ({self})")
1957-
return rv
1955+
return self._key_prefix + self._dimension_separator.join(map(str, chunk_coords))
19581956

19591957
def _decode_chunk(self, cdata, start=None, nitems=None, expected_shape=None):
19601958
# decompress

zarr/storage.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,6 @@ def __init__(self, url, normalize_keys=True, key_separator=None,
11011101
raise FSPathExistNotDir(url)
11021102

11031103
def _normalize_key(self, key):
1104-
orig = key
11051104
key = normalize_storage_path(key).lstrip('/')
11061105
if key:
11071106
*bits, end = key.split('/')
@@ -1110,9 +1109,7 @@ def _normalize_key(self, key):
11101109
end = end.replace('.', self.key_separator)
11111110
key = '/'.join(bits + [end])
11121111

1113-
key = key.lower() if self.normalize_keys else key
1114-
print(f"Store: {orig} --> {key} ({self})")
1115-
return key
1112+
return key.lower() if self.normalize_keys else key
11161113

11171114
def getitems(self, keys, **kwargs):
11181115
keys_transformed = [self._normalize_key(key) for key in keys]

0 commit comments

Comments
 (0)