File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/spatialdata_io/readers Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -390,15 +390,14 @@ def _get_labels_and_indices_mapping(
390390
391391 # this information will probably be available in the `label_id` column for version > 2.0.0 (see public
392392 # release notes mentioned above)
393- real_label_index = _get_unique_label_values_as_index (labels )
393+ real_label_index = _get_unique_label_values_as_index (labels ). values
394394
395395 # background removal
396396 if real_label_index [0 ] == 0 :
397397 real_label_index = real_label_index [1 :]
398398
399399 if version < packaging .version .parse ("2.0.0" ):
400400 expected_label_index = z ["seg_mask_value" ][...]
401- real_label_index = _get_unique_label_values_as_index (labels ).values
402401
403402 if not np .array_equal (expected_label_index , real_label_index ):
404403 raise ValueError (
You can’t perform that action at this time.
0 commit comments