Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Aug 9, 2024
1 parent 09bfd9f commit 86c2738
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion brainunit/math/_einops_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
import pytest

import brainunit as bu
from brainunit._base import assert_quantity
from brainunit.math._einops import einrearrange, einreduce, einrepeat, _enumerate_directions
from brainunit.math._einops_parsing import EinopsError
from brainunit._base import assert_quantity

REDUCTIONS = ("min", "max", "sum", "mean", "prod")

Expand Down
1 change: 1 addition & 0 deletions brainunit/math/_fun_accept_unitless.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.
# ==============================================================================
from __future__ import annotations

from typing import Union, Optional, Tuple, Any, Callable

import jax
Expand Down
1 change: 0 additions & 1 deletion brainunit/math/_fun_array_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from .._base import (
Quantity,
Unit,
fail_for_dimension_mismatch,
fail_for_unit_mismatch,
get_unit,
unit_scale_align_to_first,
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_fun_array_creation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import brainunit as bu
import brainunit.math as bm
from brainunit import second, meter, DimensionMismatchError
from brainunit import second, meter
from brainunit._base import assert_quantity

fun_array_creation_given_shape = [
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_fun_change_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import jax.numpy as jnp

from ._fun_array_creation import asarray
from .._base import DIMENSIONLESS, UNITLESS, Quantity, remove_unitless
from .._base import UNITLESS, Quantity, remove_unitless
from .._misc import set_module_as

__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_fun_remove_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import jax
import jax.numpy as jnp

from .._base import Quantity, fail_for_dimension_mismatch, get_unit, fail_for_unit_mismatch, UNITLESS
from .._base import Quantity, get_unit
from .._misc import set_module_as

__all__ = [
Expand Down
1 change: 0 additions & 1 deletion brainunit/math/_fun_remove_unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import brainunit as bu
import brainunit.math as bm
from brainunit import DimensionMismatchError
from brainunit._base import assert_quantity

fun_remove_unit_unary = [
Expand Down
9 changes: 3 additions & 6 deletions brainunit/math/_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@
import jax.numpy as jnp
import numpy as np

from .._base import (DIMENSIONLESS,
UNITLESS,
Unit,
from .._base import (Unit,
Quantity,
get_unit,
is_unitless,
get_dim)
get_unit,
is_unitless)
from .._misc import set_module_as

T = TypeVar("T")
Expand Down

0 comments on commit 86c2738

Please sign in to comment.