From 5d14a3071584dc4d54126f911bfc87336af99ade Mon Sep 17 00:00:00 2001 From: janezlapajne Date: Tue, 1 Oct 2024 15:48:27 +0200 Subject: [PATCH] refactor: added support for ArrayLike in ArrayLike1dType and ArrayLike2dType --- siapy/core/types.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/siapy/core/types.py b/siapy/core/types.py index da87947..902be97 100644 --- a/siapy/core/types.py +++ b/siapy/core/types.py @@ -3,6 +3,7 @@ import numpy as np import pandas as pd import spectral as sp +from numpy.typing import ArrayLike from PIL.Image import Image from siapy.entities import SpectralImage, SpectralImageSet @@ -34,5 +35,5 @@ | np.uint64 ) ImageContainerType = SpectralImage | SpectralImageSet -ArrayLike1dType = np.ndarray | pd.Series | Sequence[Any] -ArrayLike2dType = np.ndarray | pd.DataFrame | Sequence[Any] +ArrayLike1dType = np.ndarray | pd.Series | Sequence[Any] | ArrayLike +ArrayLike2dType = np.ndarray | pd.DataFrame | Sequence[Any] | ArrayLike