Skip to content

Commit

Permalink
Merge pull request #172 from scverse/fix/from_legacy_anndata
Browse files Browse the repository at this point in the history
fix missing var from_legacy_anndata
  • Loading branch information
LucaMarconato authored Aug 1, 2024
2 parents 076226b + 760066e commit 6b7af6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spatialdata_io/converters/legacy_anndata.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ def from_legacy_anndata(adata: AnnData) -> SpatialData:
keys = set(adata.uns[SPATIAL][dataset_id].keys())
tissue_hires_scalef = None
tissue_lowres_scalef = None
hires = None
lowres = None
if SCALEFACTORS in keys:
scalefactors = adata.uns[SPATIAL][dataset_id][SCALEFACTORS]
if TISSUE_HIRES_SCALEF in scalefactors:
Expand Down

0 comments on commit 6b7af6d

Please sign in to comment.