-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
593cdcc
commit d90b40b
Showing
7 changed files
with
107 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from typing import Annotated | ||
from typing import Literal | ||
from typing import Sequence | ||
from typing import Union | ||
|
||
import numpy as np | ||
import numpy.typing as npt | ||
|
||
FloatNx3 = Union[ | ||
Sequence[Annotated[Sequence[float], 3]], | ||
Annotated[npt.NDArray[np.float64], Literal["*, 3"]], | ||
] | ||
"""An array-like object, with each item in the array containing three (3) floats.""" | ||
|
||
FloatNx1 = Union[ | ||
Sequence[Annotated[Sequence[float], 1]], | ||
Annotated[npt.NDArray[np.float64], Literal["*, 1"]], | ||
] | ||
"""An array-like object, with each item in the array containing one (1) float.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters