Skip to content

Commit 93c7fd2

Browse files
committed
Consistent data type for export
1 parent 6418e7c commit 93c7fd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/export_lower_resolution_marker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def filter_marker_instances(cochlea, segmentation, seg_name, group=None):
4444
else:
4545
raise ValueError("Choose either 'positive' or 'negative' as group value.")
4646

47-
segmentation = segmentation.astype("uint16")
47+
segmentation = segmentation.astype("float32")
4848
return segmentation
4949

5050

@@ -68,7 +68,7 @@ def export_lower_resolution(args):
6868
internal_path = os.path.join(args.cochlea, "images", "ome-zarr", f"{channel}.ome.zarr")
6969
s3_store, fs = get_s3_path(internal_path, bucket_name=BUCKET_NAME, service_endpoint=SERVICE_ENDPOINT)
7070
with zarr.open(s3_store, mode="r") as f:
71-
data = f[input_key][:]
71+
data = f[input_key][:].astype("float32")
7272
print("Data shape", data.shape)
7373

7474
print(f"Filtering {group} marker instances.")

0 commit comments

Comments
 (0)