Skip to content

Commit

Permalink
refactor(jax-utils): ensure vectorize_method is private
Browse files Browse the repository at this point in the history
  • Loading branch information
nstarman committed Jan 28, 2024
1 parent 6fcc6a8 commit d39da0f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/galax/potential/_potential/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
Vec6,
)
from galax.units import UnitSystem, dimensionless
from galax.utils import vectorize_method
from galax.utils._jax import vectorize_method
from galax.utils._shape import batched_shape, expand_arr_dims, expand_batch_dims
from galax.utils.dataclasses import ModuleMeta

Expand Down
2 changes: 1 addition & 1 deletion src/galax/potential/_potential/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
FloatScalar,
Vec3,
)
from galax.utils import vectorize_method
from galax.utils._jax import vectorize_method
from galax.utils.dataclasses import field

mass = u.get_physical_type("mass")
Expand Down
2 changes: 1 addition & 1 deletion src/galax/potential/_potential/param/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
FloatScalar,
Unit,
)
from galax.utils import vectorize_method
from galax.utils._jax import vectorize_method
from galax.utils.dataclasses import converter_float_array


Expand Down
2 changes: 1 addition & 1 deletion src/galax/utils/_jax.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""galax: Galactic Dynamix in Jax."""


__all__ = ["vectorize_method"]
__all__: list[str] = []

from collections.abc import Callable, Sequence
from functools import partial
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/utils/test_jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from galax.utils import vectorize_method


def test_vectorize_method():
def test_vectorize_method() -> None:
"""Test the vectorize_method function."""

class A:
Expand Down

0 comments on commit d39da0f

Please sign in to comment.