Skip to content

Commit

Permalink
refactor: added support for ArrayLike in ArrayLike1dType and ArrayLik…
Browse files Browse the repository at this point in the history
…e2dType
  • Loading branch information
janezlapajne committed Oct 1, 2024
1 parent 826b05b commit 368fdeb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions siapy/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 368fdeb

Please sign in to comment.