Skip to content

Commit

Permalink
add return type
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldoucet committed Oct 29, 2024
1 parent 53e8ed4 commit 58298b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hest/HESTData.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def save_tissue_vis(self, save_dir: str, name: str) -> None:
vis.save(os.path.join(save_dir, f'{name}_vis.jpg'))


def to_spatial_data(self, fullres: bool = False):
def to_spatial_data(self, fullres: bool = False) -> SpatialData:
"""
Convert a HESTData sample to a scverse SpatialData object. Note that a large part of this function is based on
spatialdata-io's [``from_legacy_anndata``](https://spatialdata.scverse.org/projects/io/en/latest/generated/spatialdata_io.experimental.from_legacy_anndata.html)
Expand Down Expand Up @@ -507,8 +507,6 @@ def to_spatial_data(self, fullres: bool = False):
"""

# imports specific to spatial data conversion
from spatialdata import SpatialData
import dask.array as da
from dask import delayed
from dask.array import from_delayed
from spatial_image import SpatialImage
Expand Down

0 comments on commit 58298b3

Please sign in to comment.