-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* more tolerant scalar check * refactor broadcast of value/lower/upper etc. * isort * change allow_none to default False * add missing backtick, good job flake8 * version bump
- Loading branch information
Showing
5 changed files
with
70 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
# Standard Python modules | ||
from typing import Dict, List, Union | ||
from typing import Dict, Sequence, Union | ||
|
||
# External modules | ||
from numpy import ndarray | ||
import numpy as np | ||
import numpy.typing as npt | ||
|
||
# Either ndarray or scalar | ||
NumpyType = Union[float, ndarray] | ||
NumpyType = Union[float, npt.NDArray[np.float_]] | ||
# ndarray, list of numbers, or scalar | ||
ArrayType = Union[float, List[float], ndarray] | ||
ArrayType = Union[NumpyType, Sequence[float]] | ||
# funcs | ||
Dict1DType = Dict[str, ndarray] | ||
Dict1DType = Dict[str, npt.NDArray[np.float_]] | ||
# funcsSens | ||
Dict2DType = Dict[str, Dict[str, ndarray]] | ||
Dict2DType = Dict[str, Dict[str, npt.NDArray[np.float_]]] |