Skip to content

Commit

Permalink
Fix typos and import order in the spatial outgest (#3381) (#3382)
Browse files Browse the repository at this point in the history
Co-authored-by: Julia Dark <[email protected]>
  • Loading branch information
github-actions[bot] and jp-dark authored Nov 22, 2024
1 parent d6964e6 commit 684cd69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apis/python/src/tiledbsoma/experimental/_xarray_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
import spatialdata as sd
from spatialdata.models.models import DataTree
except ImportError as err:
warnings.warn("Experimental spatial exporter requires the spatialdatda package.")
warnings.warn("Experimental spatial exporter requires the spatialdata package.")
raise err
try:
import xarray as xr
except ImportError as err:
warnings.warn("Experimental spatial exporter requires the spatialdatda package.")
warnings.warn("Experimental spatial exporter requires the xarray package.")
raise err

from .. import DenseNDArray
Expand Down
10 changes: 5 additions & 5 deletions apis/python/src/tiledbsoma/experimental/outgest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
import warnings
from typing import TYPE_CHECKING, Dict, Optional, Tuple, Union

try:
import geopandas as gpd
except ImportError as err:
warnings.warn("Experimental spatial outgestor requires the geopandas package.")
raise err
import pandas as pd
import somacore

Expand All @@ -18,6 +13,11 @@
except ImportError as err:
warnings.warn("Experimental spatial outgestor requires the spatialdata package.")
raise err
try:
import geopandas as gpd
except ImportError as err:
warnings.warn("Experimental spatial outgestor requires the geopandas package.")
raise err

from .. import MultiscaleImage, PointCloudDataFrame
from .._constants import SOMA_JOINID
Expand Down

0 comments on commit 684cd69

Please sign in to comment.