Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Jun 14, 2024
1 parent cf27d36 commit c4722cf
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_array_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
import numpy as np
from jax import Array

from brainunit._misc import set_module_as
from .._base import (
DIMENSIONLESS,
Quantity,
Unit,
fail_for_dimension_mismatch,
is_unitless,
)
from .._misc import set_module_as

__all__ = [
# array creation
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_array_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
from jax import Array
from jax.tree_util import tree_map

from brainunit._misc import set_module_as
from .._base import Quantity
from .._misc import set_module_as

__all__ = [
# array manipulation
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_funcs_accept_unitless.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import jax.numpy as jnp
from jax import Array

from brainunit._misc import set_module_as
from .._base import (Quantity, fail_for_dimension_mismatch, )
from .._misc import set_module_as

__all__ = [
# math funcs only accept unitless (unary)
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_funcs_bit_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import numpy as np
from jax import Array

from brainunit._misc import set_module_as
from .._base import Quantity
from .._misc import set_module_as

__all__ = [
# Elementwise bit operations (unary)
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_funcs_change_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
import jax.numpy as jnp
import numpy as np

from brainunit._misc import set_module_as
from ._compat_numpy_get_attribute import isscalar
from .._base import (DIMENSIONLESS, Quantity, )
from .._base import _return_check_unitless
from .._misc import set_module_as

__all__ = [

Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_funcs_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import jax.numpy as jnp
import numpy as np

from brainunit._misc import set_module_as
from .._base import (Quantity, fail_for_dimension_mismatch, is_unitless, )
from .._misc import set_module_as

__all__ = [
# indexing funcs
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_funcs_keep_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import jax.numpy as jnp
import numpy as np

from brainunit._misc import set_module_as
from .._base import Quantity, fail_for_dimension_mismatch
from .._misc import set_module_as

__all__ = [
# math funcs keep unit (unary)
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_funcs_match_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import numpy as np
from jax import Array

from brainunit._misc import set_module_as
from .._base import (Quantity,
fail_for_dimension_mismatch, )
from .._misc import set_module_as

__all__ = [
# math funcs match unit (binary)
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_funcs_remove_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import jax.numpy as jnp
from jax import Array

from brainunit._misc import set_module_as
from .._base import Quantity
from .._misc import set_module_as

__all__ = [

Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_funcs_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import jax.numpy as jnp
from jax import Array

from brainunit._misc import set_module_as
from .._misc import set_module_as

__all__ = [
# window funcs
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_get_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import jax.numpy as jnp
import numpy as np

from brainunit._misc import set_module_as
from .._base import Quantity
from .._misc import set_module_as

__all__ = [
# getting attribute funcs
Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_linear_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import jax.numpy as jnp
from jax import Array

from brainunit._misc import set_module_as
from ._compat_numpy_funcs_change_unit import funcs_change_unit_binary
from ._compat_numpy_funcs_keep_unit import funcs_keep_unit_unary
from .._base import Quantity
from .._misc import set_module_as

__all__ = [

Expand Down
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from jax import Array
from jax._src.numpy.lax_numpy import _einsum

from brainunit._misc import set_module_as
from ._compat_numpy_array_manipulation import func_array_manipulation
from ._compat_numpy_funcs_change_unit import funcs_change_unit_binary
from ._compat_numpy_funcs_keep_unit import funcs_keep_unit_unary
Expand All @@ -34,6 +33,7 @@
fail_for_dimension_mismatch,
is_unitless,
get_dim, )
from .._misc import set_module_as

__all__ = [

Expand Down

0 comments on commit c4722cf

Please sign in to comment.