Skip to content

Commit

Permalink
Add forced transform and resolve future warning
Browse files Browse the repository at this point in the history
  • Loading branch information
melonora committed Jul 21, 2023
1 parent 244c747 commit 3982a8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/spatialdata_io/readers/mcmicro.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from types import MappingProxyType
from typing import Any, Union

import anndata as ad
import numpy as np
import pandas as pd
import yaml
Expand Down Expand Up @@ -113,6 +114,7 @@ def mcmicro(
core_id = int(core_id_search.group()) if core_id_search else None
labels[f"core_{core_id}_{segmentation_stem}"] = _get_labels(
label_path,
transformations,
imread_kwargs,
label_models_kwargs,
)
Expand Down Expand Up @@ -178,7 +180,7 @@ def _get_table(
if not adatas:
adatas = adata
else:
adatas = adatas.concatenate(adata, index_unique=None)
adatas = ad.concat([adatas, adata], index_unique=None)

return TableModel.parse(adatas, region=regions, region_key="region", instance_key=McmicroKeys.INSTANCE_KEY.value)

Expand Down

0 comments on commit 3982a8b

Please sign in to comment.