-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: dynamics library * refactor: cleanup integrate API in integrate Signed-off-by: nstarman <nstarman@users.noreply.github.com>
- Loading branch information
Showing
19 changed files
with
66 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
"""galax: Galactic Dynamix in Jax.""" | ||
""":mod:`galax.dynamics`.""" | ||
|
||
from . import _base, _core, _orbit, mockstream | ||
from ._base import * | ||
from ._core import * | ||
from ._orbit import * | ||
from .mockstream import * | ||
from . import _dynamics | ||
from ._dynamics import * | ||
|
||
__all__: list[str] = [] | ||
__all__ += _base.__all__ | ||
__all__ += _core.__all__ | ||
__all__ += _orbit.__all__ | ||
__all__ += mockstream.__all__ | ||
__all__ = _dynamics.__all__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""galax: Galactic Dynamix in Jax.""" | ||
|
||
from . import base, core, mockstream, orbit | ||
from .base import * | ||
from .core import * | ||
from .mockstream import * | ||
from .orbit import * | ||
|
||
__all__: list[str] = ["mockstream"] | ||
__all__ += base.__all__ | ||
__all__ += core.__all__ | ||
__all__ += orbit.__all__ | ||
__all__ += mockstream.__all__ | ||
|
||
|
||
# Cleanup | ||
del base, core, orbit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""galax: Galactic Dynamix in Jax.""" | ||
|
||
from . import core, df, mockstream_generator | ||
from .core import * | ||
from .df import * | ||
from .mockstream_generator import * | ||
|
||
__all__: list[str] = [] | ||
__all__ += df.__all__ | ||
__all__ += core.__all__ | ||
__all__ += mockstream_generator.__all__ | ||
|
||
# Cleanup | ||
del core, df, mockstream_generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ | |
__all__: list[str] = [] | ||
__all__ += _base.__all__ | ||
__all__ += _builtin.__all__ | ||
|
||
# Cleanup | ||
del _base, _builtin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
"""Testing :mod:`galax.dynamics.mockstream` module.""" | ||
|
||
from galax.dynamics import mockstream | ||
from galax.dynamics._dynamics.mockstream import core, df, mockstream_generator | ||
|
||
|
||
def test_all() -> None: | ||
"""Test the `galax.dynamics.mockstream` API.""" | ||
assert set(mockstream.__all__) == set( | ||
mockstream._df.__all__ | ||
+ mockstream._core.__all__ | ||
+ mockstream._mockstream_generator.__all__ | ||
df.__all__ + core.__all__ + mockstream_generator.__all__ | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
"""Testing :mod:`galax.dynamics` module.""" | ||
|
||
import galax.dynamics as gd | ||
from galax.dynamics._dynamics import base, core, mockstream, orbit | ||
|
||
|
||
def test_all() -> None: | ||
"""Test the `galax.potential` API.""" | ||
assert set(gd.__all__) == set( | ||
gd._base.__all__ + gd._core.__all__ + gd._orbit.__all__ + gd.mockstream.__all__ | ||
) | ||
assert set(gd.__all__) == { | ||
"mockstream", | ||
*base.__all__, | ||
*core.__all__, | ||
*orbit.__all__, | ||
*mockstream.__all__, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
"""Test the :mod:`galax.integrate` module.""" | ||
|
||
from galax import integrate | ||
from galax.integrate import _base, _builtin | ||
|
||
|
||
def test_all(): | ||
"""Test the API.""" | ||
assert set(integrate.__all__) == set( | ||
integrate._base.__all__ + integrate._builtin.__all__ | ||
) | ||
assert set(integrate.__all__) == set(_base.__all__ + _builtin.__all__) |