[go: nahoru, domu]

Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Mar 24, 2024
1 parent 326e31e commit 346b4b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/spatialdata_io/readers/xenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,14 @@ def _get_labels_and_indices_mapping(

# this information will probably be available in the `label_id` column for version > 2.0.0 (see public
# release notes mentioned above)
real_label_index = _get_unique_label_values_as_index(labels)
real_label_index = _get_unique_label_values_as_index(labels).values

# background removal
if real_label_index[0] == 0:
real_label_index = real_label_index[1:]

if version < packaging.version.parse("2.0.0"):
expected_label_index = z["seg_mask_value"][...]
real_label_index = _get_unique_label_values_as_index(labels).values

if not np.array_equal(expected_label_index, real_label_index):
raise ValueError(
Expand Down

0 comments on commit 346b4b0

Please sign in to comment.