Skip to content

Commit

Permalink
fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Sep 24, 2024
1 parent 15e9223 commit 33b4652
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion hsds/chunk_crawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,6 @@ async def do_work(self, chunk_id, client=None):
else:
log.error(msg)
break # no retry on 400's

except HTTPNotFound as nfe:
status_code = 404
log.info(f"HTTPNotFoundRequest for {self._action}({chunk_id}): {nfe}")
Expand Down
2 changes: 0 additions & 2 deletions hsds/util/arrayUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,6 @@ def bytesToArray(data, dt, shape, encoding=None):
"""
Create numpy array based on byte representation
"""
print(f"bytesToArray -- dt: {dt}, dt.metadata: {dt.metadata} shape: {shape}, encoding: {encoding}")
print(f"data: {data}")
if encoding:
# decode the data
# will raise ValueError if non-decodeable
Expand Down
2 changes: 1 addition & 1 deletion hsds/util/storUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _shuffle(codec, data, chunk_shape=None, dtype=None):

def _unshuffle(codec, data, dtype=None, chunk_shape=None):
item_size = dtype.itemsize
#chunk_size = int(np.prod(chunk_shape)) * item_size
# chunk_size = int(np.prod(chunk_shape)) * item_size

if codec == 1:
# byte shuffle, use numcodecs Shuffle
Expand Down

0 comments on commit 33b4652

Please sign in to comment.