From 33b46523e484c7b2c6ac68fc8ba0996da0fa599b Mon Sep 17 00:00:00 2001 From: John Readey Date: Tue, 24 Sep 2024 05:39:34 -0500 Subject: [PATCH] fix flake8 errors --- hsds/chunk_crawl.py | 1 - hsds/util/arrayUtil.py | 2 -- hsds/util/storUtil.py | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/hsds/chunk_crawl.py b/hsds/chunk_crawl.py index 3ea852b4..67ee4b2a 100755 --- a/hsds/chunk_crawl.py +++ b/hsds/chunk_crawl.py @@ -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}") diff --git a/hsds/util/arrayUtil.py b/hsds/util/arrayUtil.py index af08bd7d..67c847c3 100644 --- a/hsds/util/arrayUtil.py +++ b/hsds/util/arrayUtil.py @@ -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 diff --git a/hsds/util/storUtil.py b/hsds/util/storUtil.py index 10646ff5..71e29824 100644 --- a/hsds/util/storUtil.py +++ b/hsds/util/storUtil.py @@ -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