Skip to content

Commit

Permalink
Update _compat_numpy_funcs_accept_unitless.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed Jun 13, 2024
1 parent c32e2fb commit 1926193
Show file tree
Hide file tree
Showing 2 changed files with 382 additions and 185 deletions.
14 changes: 7 additions & 7 deletions brainunit/math/_compat_numpy_array_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def concatenate(
def stack(
arrays: Union[Sequence[Array], Sequence[Quantity]],
axis: int = 0,
out: Optional[Quantity, jax.typing.ArrayLike] = None,
out: Optional[Union[Quantity, jax.typing.ArrayLike]] = None,
dtype: Optional[Any] = None
) -> Union[Array, Quantity]:
"""
Expand Down Expand Up @@ -905,7 +905,7 @@ def argsort(
def max(
a: Union[Array, Quantity],
axis: Optional[int] = None,
out: Optional[Quantity, jax.typing.ArrayLike] = None,
out: Optional[Union[Quantity, jax.typing.ArrayLike]] = None,
keepdims: bool = False,
initial: Optional[Union[int, float]] = None,
where: Optional[Array] = None,
Expand Down Expand Up @@ -945,7 +945,7 @@ def max(
def min(
a: Union[Array, Quantity],
axis: Optional[int] = None,
out: Optional[Quantity, jax.typing.ArrayLike] = None,
out: Optional[Union[Quantity, jax.typing.ArrayLike]] = None,
keepdims: bool = False,
initial: Optional[Union[int, float]] = None,
where: Optional[Array] = None,
Expand Down Expand Up @@ -985,7 +985,7 @@ def min(
def choose(
a: Union[Array, Quantity],
choices: Sequence[Union[Array, Quantity]],
out: Optional[Quantity, jax.typing.ArrayLike] = None,
out: Optional[Union[Quantity, jax.typing.ArrayLike]] = None,
mode: str = 'raise',
) -> Union[Array, Quantity]:
"""
Expand Down Expand Up @@ -1043,7 +1043,7 @@ def compress(
*,
size: Optional[int] = None,
fill_value: Optional[jax.typing.ArrayLike] = None,
out: Optional[Quantity, jax.typing.ArrayLike] = None,
out: Optional[Union[Quantity, jax.typing.ArrayLike]] = None,
) -> Union[Array, Quantity]:
"""
Return selected slices of a quantity or an array along given axis.
Expand Down Expand Up @@ -1103,7 +1103,7 @@ def diagflat(
def argmax(
a: Union[Array, Quantity],
axis: Optional[int] = None,
out: Optional[Quantity, jax.typing.ArrayLike] = None,
out: Optional[Union[Quantity, jax.typing.ArrayLike]] = None,
keepdims: Optional[bool] = None
) -> Array:
"""
Expand Down Expand Up @@ -1133,7 +1133,7 @@ def argmax(
def argmin(
a: Union[Array, Quantity],
axis: Optional[int] = None,
out: Optional[Quantity, jax.typing.ArrayLike] = None,
out: Optional[Union[Quantity, jax.typing.ArrayLike]] = None,
keepdims: Optional[bool] = None
) -> Array:
"""
Expand Down
Loading

0 comments on commit 1926193

Please sign in to comment.