Skip to content

Commit 90edf75

Browse files
Minor changes
1 parent ec8b6f5 commit 90edf75

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

flamingo_tools/data_conversion.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
import numpy as np
1111
import pybdv
1212

13-
from cluster_tools.utils.volume_utils import write_format_metadata
13+
try:
14+
from cluster_tools.utils.volume_utils import write_format_metadata
15+
except ImportError:
16+
write_format_metadata = None
17+
1418
from elf.io import open_file
1519
from skimage.transform import rescale
1620

scripts/export_lower_resolution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def export_lower_resolution(args):
156156
internal_path = os.path.join(args.cochlea, "images", "ome-zarr", f"{channel}.ome.zarr")
157157
s3_store, fs = get_s3_path(internal_path, bucket_name=BUCKET_NAME, service_endpoint=SERVICE_ENDPOINT)
158158
with zarr.open(s3_store, mode="r") as f:
159-
data = f[input_key][:]
159+
data = f[input_key][:].astype("float32")
160160
print("Data shape", data.shape)
161161
if args.filter_by_components is not None:
162162
print(f"Filtering channel {channel} by components {args.filter_by_components}.")

0 commit comments

Comments
 (0)