Skip to content

Commit 41ce083

Browse files
authored
Merge pull request #27 from AllenNeuralDynamics/feat-read-precomputed
linting
2 parents e25ab3f + bb8a7df commit 41ce083

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/aind_exaspim_image_compression/utils/img_util.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def _read_neuroglancer_precompted(img_path):
122122
img = img[ts.d[0].transpose[2]]
123123
img = img[ts.d[0].transpose[1]]
124124
return img[:].read().result()
125-
125+
126+
126127
def _read_tiff(img_path, storage_options=None):
127128
"""
128129
Reads a TIFF file from local disk or GCS.
@@ -347,7 +348,9 @@ def compute_cratio(img, codec, patch_shape=(64, 64, 64)):
347348
return round(total_uncompressed_size / total_compressed_size, 2)
348349

349350

350-
def compute_cratio_jpegxl(img, codec, patch_shape=(128, 128, 64), max_workers=32):
351+
def compute_cratio_jpegxl(
352+
img, codec, patch_shape=(128, 128, 64), max_workers=32
353+
):
351354
# Helper routine
352355
def compress_patch(idx):
353356
iterator = zip(idx, patch_shape, img.shape)

src/aind_exaspim_image_compression/utils/swc_util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def read(self, swc_pointer):
121121
# Path to single SWC file
122122
if ".swc" in swc_pointer:
123123
return self.read_from_path(swc_pointer)
124+
124125
# No swcs found
125126
print(f"No swcs found at -{swc_pointer}-")
126127
return list()

0 commit comments

Comments
 (0)