We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4432c88 commit c267eb3Copy full SHA for c267eb3
scripts/export_lower_resolution.py
@@ -20,7 +20,7 @@ def filter_component(fs, segmentation, cochlea, seg_name, components):
20
component_mask = np.isin(table.component_labels.values, components)
21
keep_label_ids = table.label_id.values[component_mask].astype("int64")
22
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}.")
+ warnings.warn(f"Label ID exceeds maximum of data type 'uint16': {np.iinfo('uint16').max}.")
24
25
filter_mask = ~np.isin(segmentation, keep_label_ids)
26
segmentation[filter_mask] = 0
0 commit comments