From 7288bebb5a4b5380a1b7b435b49b41cbcf851169 Mon Sep 17 00:00:00 2001 From: Mark Keller <7525285+keller-mark@users.noreply.github.com> Date: Mon, 28 Oct 2024 09:18:45 -0400 Subject: [PATCH] Move spatialdata dependency to optional --- pyproject.toml | 2 +- vitessce/wrappers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f5b5f17..4f9a679 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,6 @@ dependencies = [ 'black>=21.11b1', 'numpy>=1.21.2,<2.0', 'anndata>=0.7.8,<0.11', - 'spatialdata>=0.2.2', 'scanpy>=1.9.3', 'ome-zarr>=0.8.3', 'tifffile>=2020.10.1', @@ -48,6 +47,7 @@ dev = [ 'loompy>=3.0.6', 'coverage>=6.3.2', 'flake8==3.8.4', + 'spatialdata>=0.2.2', ] docs = [ 'sphinx==4.2.0', diff --git a/vitessce/wrappers.py b/vitessce/wrappers.py index fda7345..d142f5c 100644 --- a/vitessce/wrappers.py +++ b/vitessce/wrappers.py @@ -13,10 +13,10 @@ import zarr import numpy as np -from spatialdata import SpatialData if TYPE_CHECKING: import lamindb as ln + from spatialdata import SpatialData from vitessce.file_def_utils import ( gen_obs_locations_schema,