Skip to content

Commit 5aa46df

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f1366bd commit 5aa46df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/spatialdata_io/converters/legacy_anndata.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ def from_legacy_anndata(adata: AnnData) -> SpatialData:
293293
"tissue_hires_scalef is required when an the hires image is present"
294294
)
295295
hires_image = Image2DModel.parse(
296-
hires, dims=("y", "x", "c"), transformations={f"{dataset_id}_downscaled_hires": Identity()},
296+
hires,
297+
dims=("y", "x", "c"),
298+
transformations={f"{dataset_id}_downscaled_hires": Identity()},
297299
rgb=None,
298300
)
299301
images[f"{dataset_id}_hires_image"] = hires_image
@@ -307,7 +309,9 @@ def from_legacy_anndata(adata: AnnData) -> SpatialData:
307309
"tissue_lowres_scalef is required when an the lowres image is present"
308310
)
309311
lowres_image = Image2DModel.parse(
310-
lowres, dims=("y", "x", "c"), transformations={f"{dataset_id}_downscaled_lowres": Identity()},
312+
lowres,
313+
dims=("y", "x", "c"),
314+
transformations={f"{dataset_id}_downscaled_lowres": Identity()},
311315
rgb=None,
312316
)
313317
images[f"{dataset_id}_lowres_image"] = lowres_image

0 commit comments

Comments
 (0)