Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/aind_exaspim_image_compression/utils/img_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def _read_neuroglancer_precompted(img_path):
img = img[ts.d[0].transpose[2]]
img = img[ts.d[0].transpose[1]]
return img[:].read().result()



def _read_tiff(img_path, storage_options=None):
"""
Reads a TIFF file from local disk or GCS.
Expand Down Expand Up @@ -347,7 +348,9 @@ def compute_cratio(img, codec, patch_shape=(64, 64, 64)):
return round(total_uncompressed_size / total_compressed_size, 2)


def compute_cratio_jpegxl(img, codec, patch_shape=(128, 128, 64), max_workers=32):
def compute_cratio_jpegxl(
img, codec, patch_shape=(128, 128, 64), max_workers=32
):
# Helper routine
def compress_patch(idx):
iterator = zip(idx, patch_shape, img.shape)
Expand Down
1 change: 1 addition & 0 deletions src/aind_exaspim_image_compression/utils/swc_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def read(self, swc_pointer):
# Path to single SWC file
if ".swc" in swc_pointer:
return self.read_from_path(swc_pointer)

# No swcs found
print(f"No swcs found at -{swc_pointer}-")
return list()
Expand Down
Loading