Skip to content

Commit 0a9d6c4

Browse files
committed
Fix data type for export
1 parent 04ca7ba commit 0a9d6c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/export_lower_resolution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def filter_component(fs, segmentation, cochlea, seg_name, components):
2727

2828
filter_mask = ~np.isin(segmentation, keep_label_ids)
2929
segmentation[filter_mask] = 0
30-
segmentation = segmentation.astype("uint16")
30+
segmentation = segmentation.astype("float32")
3131
return segmentation
3232

3333

scripts/export_lower_resolution_subtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def filter_subtypes(cochlea, segmentation, seg_name, subtype):
104104
filter_mask = np.isin(segmentation, label_ids_subtype)
105105
segmentation[filter_mask] = 1
106106

107-
segmentation = segmentation.astype("uint16")
107+
segmentation = segmentation.astype("float32")
108108
return segmentation
109109

110110

0 commit comments

Comments
 (0)