Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Jun 12, 2024
1 parent 0d322d3 commit 859acc5
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 19 deletions.
File renamed without changes.
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,7 +21,7 @@
import numpy as np
from jax import Array

from ._misc import set_module_as
from brainunit._misc import set_module_as
from .._base import (
DIMENSIONLESS,
Quantity,
Expand Down
3 changes: 2 additions & 1 deletion brainunit/math/_compat_numpy_array_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
import jax.numpy as jnp
from jax import Array

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

__all__ = [
# array manipulation
'reshape', 'moveaxis', 'transpose', 'swapaxes', 'row_stack',
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,7 +19,7 @@
import jax.numpy as jnp
from jax import Array

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

__all__ = [
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,7 +19,7 @@
import numpy as np
from jax import Array

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

__all__ = [
Expand Down
4 changes: 2 additions & 2 deletions 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 _misc import set_module_as
from brainunit._misc import set_module_as
from ._compat_numpy_get_attribute import isscalar
from .._base import (DIMENSIONLESS,
Quantity,)
Quantity, )
from .._base import _return_check_unitless

__all__ = [
Expand Down
4 changes: 2 additions & 2 deletions brainunit/math/_compat_numpy_funcs_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import jax.numpy as jnp
import numpy as np

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

__all__ = [

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,7 +18,7 @@
import jax.numpy as jnp
import numpy as np

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

__all__ = [
Expand Down
4 changes: 2 additions & 2 deletions brainunit/math/_compat_numpy_funcs_logic.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 _misc import set_module_as
from brainunit._misc import set_module_as
from .._base import (Quantity,
fail_for_dimension_mismatch,)
fail_for_dimension_mismatch, )

__all__ = [
# logic funcs (unary)
Expand Down
4 changes: 2 additions & 2 deletions 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 _misc import set_module_as
from brainunit._misc import set_module_as
from .._base import (Quantity,
fail_for_dimension_mismatch,)
fail_for_dimension_mismatch, )

__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 @@ -17,7 +17,7 @@
import jax.numpy as jnp
from jax import Array

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

__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 _misc import set_module_as
from brainunit._misc import set_module_as

__all__ = [

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,7 +18,7 @@
import jax.numpy as jnp
import numpy as np

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

__all__ = [
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 @@ -17,7 +17,7 @@
import jax.numpy as jnp
from jax import Array

from _misc import set_module_as
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
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 @@ -22,7 +22,7 @@
from jax import Array
from jax._src.numpy.lax_numpy import _einsum

from _misc import set_module_as
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 Down
2 changes: 1 addition & 1 deletion brainunit/math/_others.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import jax.numpy as jnp

from _misc import set_module_as
from brainunit._misc import set_module_as
from ._compat_numpy_funcs_accept_unitless import funcs_only_accept_unitless_unary

__all__ = [
Expand Down

0 comments on commit 859acc5

Please sign in to comment.