Skip to content

Commit c267eb3

Browse files
committed
Warning for data type threshold
1 parent 4432c88 commit c267eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/export_lower_resolution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def filter_component(fs, segmentation, cochlea, seg_name, components):
2020
component_mask = np.isin(table.component_labels.values, components)
2121
keep_label_ids = table.label_id.values[component_mask].astype("int64")
2222
if max(keep_label_ids) > np.iinfo("uint16").max:
23-
warnings.warn(f"Label ID exceeds maximum of data type 'uint16': {np.iinfo("uint16").max}.")
23+
warnings.warn(f"Label ID exceeds maximum of data type 'uint16': {np.iinfo('uint16').max}.")
2424

2525
filter_mask = ~np.isin(segmentation, keep_label_ids)
2626
segmentation[filter_mask] = 0

0 commit comments

Comments
 (0)