Skip to content

Commit 9e3fdc7

Browse files
authored
Renaming exo4jax -> jaxoplanet (#10)
* renaming * supporting merge queue
1 parent df55d6f commit 9e3fdc7

38 files changed

+60
-54
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
tags:
88
- "*"
99
pull_request:
10+
merge_group:
1011

1112
jobs:
1213
tests:

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pkg_resources import DistributionNotFound, get_distribution
55

66
try:
7-
__version__ = get_distribution("exo4jax").version
7+
__version__ = get_distribution("jaxoplanet").version
88
except DistributionNotFound:
99
__version__ = "dev"
1010

@@ -18,7 +18,7 @@
1818
]
1919
autodoc_mock_imports = []
2020

21-
project = "exo4jax"
21+
project = "jaxoplanet"
2222
copyright = "2021 Dan Foreman-Mackey"
2323
version = __version__
2424
release = __version__
@@ -28,10 +28,10 @@
2828
html_theme = "sphinx_book_theme"
2929
html_title = "exoplanet-jax"
3030
html_show_sourcelink = False
31-
html_baseurl = "https://exo4jax.readthedocs.io/en/latest/"
31+
html_baseurl = "https://jaxoplanet.readthedocs.io/en/latest/"
3232
html_theme_options = {
3333
"path_to_docs": "docs",
34-
"repository_url": "https://github.com/exoplanet-dev/exo4jax",
34+
"repository_url": "https://github.com/exoplanet-dev/jaxoplanet",
3535
"repository_branch": "main",
3636
"launch_buttons": {
3737
"binderhub_url": "https://mybinder.org",

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ include_trailing_comma = true
1414
force_grid_wrap = 0
1515
use_parentheses = true
1616
combine_as_imports = true
17-
known_first_party = ["exo4jax"]
17+
known_first_party = ["jaxoplanet"]
1818

1919
[tool.coverage.run]
2020
parallel = true
2121
branch = true
22-
source = ["exo4jax"]
23-
omit = ["*_test.py", "*__init__*", "*/exo4jax/exo4jax.py"]
22+
source = ["jaxoplanet"]
23+
omit = ["*_test.py", "*__init__*", "*/jaxoplanet/jaxoplanet.py"]
2424

2525
[tool.coverage.paths]
2626
source = ["src", "*/site-packages"]

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
# PROJECT SPECIFIC
1010

11-
NAME = "exo4jax"
11+
NAME = "jaxoplanet"
1212
PACKAGES = find_packages(where="src")
13-
META_PATH = os.path.join("src", "exo4jax", "__init__.py")
13+
META_PATH = os.path.join("src", "jaxoplanet", "__init__.py")
1414
CLASSIFIERS = [
1515
"Development Status :: 4 - Beta",
1616
"Intended Audience :: Developers",
@@ -62,7 +62,9 @@ def find_meta(meta: str, meta_file: str = read(META_PATH)) -> str:
6262
setup(
6363
name=NAME,
6464
use_scm_version={
65-
"write_to": os.path.join("src", "exo4jax", "exo4jax_version.py"),
65+
"write_to": os.path.join(
66+
"src", "jaxoplanet", "jaxoplanet_version.py"
67+
),
6668
"write_to_template": '__version__ = "{version}"\n',
6769
},
6870
author=find_meta("author"),

src/exo4jax/__init__.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/exo4jax/_src/experimental/starry/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/exo4jax/core.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/exo4jax/light_curves.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/jaxoplanet/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from jaxoplanet import core as core, orbits as orbits
4+
from jaxoplanet.jaxoplanet_version import __version__ as __version__
5+
6+
__uri__ = "https://github.com/exoplanet-dev/jaxoplanet"
7+
__author__ = "Dan Foreman-Mackey"
8+
__email__ = "foreman.mackey@gmail.com"
9+
__description__ = "Exoplanet, but this time in JAX"
10+
__license__ = "MIT"
File renamed without changes.

src/exo4jax/_src/core/kepler.py renamed to src/jaxoplanet/_src/core/kepler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import jax
44
import jax.numpy as jnp
55

6-
from exo4jax._src.types import Array
6+
from jaxoplanet._src.types import Array
77

88

99
def kepler(M: Array, ecc: Array) -> Tuple[Array, Array]:

src/exo4jax/_src/core/limb_dark.py renamed to src/jaxoplanet/_src/core/limb_dark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77
from scipy.special import binom, roots_legendre
88

9-
from exo4jax._src.types import Array
9+
from jaxoplanet._src.types import Array
1010

1111

1212
@partial(jax.jit, static_argnames=("order",))
File renamed without changes.

src/exo4jax/_src/core/quad.py renamed to src/jaxoplanet/_src/core/quad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import jax.numpy as jnp
66
from scipy.special import roots_legendre
77

8-
from exo4jax._src.types import Array
8+
from jaxoplanet._src.types import Array
99

1010

1111
@partial(jax.jit, static_argnames=("order",))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from jaxoplanet._src.experimental.starry.solution import (
2+
solution_vector as solution_vector,
3+
)

src/exo4jax/_src/experimental/starry/solution.py renamed to src/jaxoplanet/_src/experimental/starry/solution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import numpy as np
77
from scipy.special import roots_legendre
88

9-
from exo4jax._src.core.quad import kite_area
10-
from exo4jax._src.types import Array
9+
from jaxoplanet._src.core.quad import kite_area
10+
from jaxoplanet._src.types import Array
1111

1212

1313
def solution_vector(

src/exo4jax/_src/keplerian.py renamed to src/jaxoplanet/_src/keplerian.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import jax
55
import jax.numpy as jnp
66

7-
from exo4jax._src.core.kepler import kepler
8-
from exo4jax._src.types import Array, Scalar
7+
from jaxoplanet._src.core.kepler import kepler
8+
from jaxoplanet._src.types import Array, Scalar
99

1010
# FIXME: Switch to constants from astropy
1111
GRAVITATIONAL_CONSTANT = 2942.2062175044193 / (4 * jnp.pi**2)

src/exo4jax/_src/light_curves.py renamed to src/jaxoplanet/_src/light_curves.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
import jax.numpy as jnp
55

6-
from exo4jax._src.proto import LightCurveOrbit
7-
from exo4jax._src.core.quad import light_curve
8-
from exo4jax._src.types import Array
6+
from jaxoplanet._src.proto import LightCurveOrbit
7+
from jaxoplanet._src.core.quad import light_curve
8+
from jaxoplanet._src.types import Array
99

1010

1111
class QuadLightCurve(NamedTuple):

src/exo4jax/_src/proto.py renamed to src/jaxoplanet/_src/proto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Optional, Tuple
22
from typing_extensions import Protocol
33

4-
from exo4jax._src.types import Array
4+
from jaxoplanet._src.types import Array
55

66

77
class LightCurveBody(Protocol):
File renamed without changes.

src/exo4jax/_src/transit.py renamed to src/jaxoplanet/_src/transit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import jax
44
import jax.numpy as jnp
55

6-
from exo4jax._src.types import Array
6+
from jaxoplanet._src.types import Array
77

88

99
class TransitOrbit(NamedTuple):
File renamed without changes.

src/jaxoplanet/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from jaxoplanet._src.core.kepler import kepler as kepler
2+
from jaxoplanet._src.core.quad import light_curve as light_curve

src/jaxoplanet/light_curves.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from jaxoplanet._src.light_curves import QuadLightCurve as QuadLightCurve
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from exo4jax._src.keplerian import (
1+
from jaxoplanet._src.keplerian import (
22
KeplerianBody as KeplerianBody,
33
KeplerianCentral as KeplerianCentral,
44
KeplerianOrbit as KeplerianOrbit,
55
)
6-
from exo4jax._src.transit import TransitOrbit as TransitOrbit
6+
from jaxoplanet._src.transit import TransitOrbit as TransitOrbit
File renamed without changes.
File renamed without changes.

tests/core/kepler_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import pytest
66
from jax.test_util import check_grads
77

8-
from exo4jax.core import kepler
9-
from exo4jax.test_utils import assert_allclose
8+
from jaxoplanet.core import kepler
9+
from jaxoplanet.test_utils import assert_allclose
1010

1111

1212
def get_mean_and_true_anomaly(eccentricity, eccentric_anomaly):

tests/core/limb_dark_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import pytest
99
from jax.test_util import check_grads
1010

11-
from exo4jax._src.core.limb_dark import light_curve
12-
from exo4jax.test_utils import assert_allclose
11+
from jaxoplanet._src.core.limb_dark import light_curve
12+
from jaxoplanet.test_utils import assert_allclose
1313

1414

1515
@pytest.mark.parametrize("r", [0.01, 0.1, 1.1, 2.0])

tests/core/quad_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import jax.numpy as jnp
55
import pytest
66

7-
from exo4jax._src.core.quad import quad_soln_impl
8-
from exo4jax.test_utils import assert_allclose
7+
from jaxoplanet._src.core.quad import quad_soln_impl
8+
from jaxoplanet.test_utils import assert_allclose
99

1010

1111
@pytest.mark.skipif(

tests/experimental/starry/basis_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pytest
33
import warnings
44

5-
from exo4jax._src.experimental.starry.basis import A1, A2_inv
5+
from jaxoplanet._src.experimental.starry.basis import A1, A2_inv
66

77

88
@pytest.mark.parametrize("lmax", [10, 7, 5, 4, 3, 2, 1, 0])

tests/experimental/starry/solution_test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
import numpy as np
77
import pytest
88

9-
from exo4jax.test_utils import assert_allclose
10-
from exo4jax._src.experimental.starry.solution import kappas, solution_vector
9+
from jaxoplanet.test_utils import assert_allclose
10+
from jaxoplanet._src.experimental.starry.solution import (
11+
kappas,
12+
solution_vector,
13+
)
1114

1215

1316
def test_kappas():

tests/keplerian_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import jax.numpy as jnp
2-
from exo4jax import orbits
2+
from jaxoplanet import orbits
33

44

55
def test_keplerian_central_shape():

tests/light_curves_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import jax.numpy as jnp
22

3-
from exo4jax import light_curves, orbits
4-
from exo4jax.test_utils import assert_allclose
3+
from jaxoplanet import light_curves, orbits
4+
from jaxoplanet.test_utils import assert_allclose
55

66

77
def test_keplerian_basic():

tests/orbits_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import numpy as np
88
import pytest
99

10-
from exo4jax.orbits import KeplerianBody, KeplerianCentral, KeplerianOrbit
11-
from exo4jax.test_utils import assert_allclose
10+
from jaxoplanet.orbits import KeplerianBody, KeplerianCentral, KeplerianOrbit
11+
from jaxoplanet.test_utils import assert_allclose
1212

1313

1414
def test_sky_coords():

0 commit comments

Comments
 (0)