From 760066e99973e0118444ff85630cdf22c712f4c9 Mon Sep 17 00:00:00 2001 From: LucaMarconato <2664412+LucaMarconato@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:37:52 +0200 Subject: [PATCH] fix missing var from_legacy_anndata --- src/spatialdata_io/converters/legacy_anndata.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spatialdata_io/converters/legacy_anndata.py b/src/spatialdata_io/converters/legacy_anndata.py index c959fa97..ed0806c2 100644 --- a/src/spatialdata_io/converters/legacy_anndata.py +++ b/src/spatialdata_io/converters/legacy_anndata.py @@ -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: