You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifnp.isin(0, element_instances.values) and (schemain (Labels2DModel, Labels3DModel)):
167
-
element_instances=element_instances.drop(index=0)
168
-
remove_centroids[e] =True
169
-
else:
170
-
remove_centroids[e] =False
171
-
elem_instances.append(element_instances)
172
145
173
-
element_instances=pd.concat(elem_instances)
174
-
if (notnp.all(element_instances.values==adata.tables[table_key].obs[instance_key].values)) or (
175
-
notnp.all(ordered_regions_in_table==regions)
176
-
):
177
-
raiseValueError(
178
-
"The spatialdata table must annotate all elements keys. Some elements are missing or not ordered correctly, please check the `elements_to_coordinate_systems` dictionary."
ifnp.isin(0, element_instances.values) and (schemain (Labels2DModel, Labels3DModel)):
426
+
element_instances=element_instances.drop(index=0)
427
+
remove_centroids[e] =True
428
+
else:
429
+
remove_centroids[e] =False
430
+
elem_instances.append(element_instances)
431
+
432
+
element_instances=pd.concat(elem_instances)
433
+
if (notnp.all(element_instances.values==adata.tables[table_key].obs[instance_key].values)) or (
434
+
notnp.all(ordered_regions_in_table==regions)
435
+
):
436
+
raiseValueError(
437
+
"The spatialdata table must annotate all elements keys. Some elements are missing or not ordered correctly, please check the `elements_to_coordinate_systems` dictionary."
0 commit comments