Skip to content

Commit

Permalink
fix incorrect type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamaedler committed Dec 1, 2024
1 parent 6e29e4b commit 08e7b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scportrait/pipeline/_utils/sdata_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _add_centers(self, segmentation_label: str, overwrite: bool = False) -> None
centroids_object = self._get_centers(_sdata, segmentation_label)
self._write_points_object_sdata(centroids_object, self.centers_name, overwrite=overwrite)

def _load_input_image_to_memmap(self, tmp_dir_abs_path: str | Path, image: np.NDArray[Any] | None = None) -> str:
def _load_input_image_to_memmap(self, tmp_dir_abs_path: str | Path, image: np.typing.NDArray[Any] | None = None) -> str:
"""Helper function to load the input image from sdata to memory mapped temp arrays for faster access.
Loading happens in a chunked manner to avoid memory issues.
Expand Down

0 comments on commit 08e7b00

Please sign in to comment.