kausalflow / hamilflow

Dataset of simple physical systems.
http://kausalflow.com/hamilflow/
MIT License
4 stars 1 forks source link

Unfortunately, isinstance(np.array([1, 2]), Sequence) is False #69

Closed cmp0xff closed 2 months ago

cmp0xff commented 2 months ago

We need to do test isinstance(array_like, (Sequence, np.ndarray)).

Taking this into account, when typing variables, we cannot write float | int | Sequence[float | int], because such does not include np.ndarray.

I suggest simply using Sequence[float] | ArrayLike[float].