Skip to content

Commit

Permalink
fix missing var from_legacy_anndata
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato authored Jul 16, 2024
1 parent a26feba commit 760066e
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 760066e

Please sign in to comment.