orbix 3.0.0__tar.gz → 4.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. {orbix-3.0.0 → orbix-4.0.0}/.github/dependabot.yml +3 -0
  2. {orbix-3.0.0 → orbix-4.0.0}/.github/scripts/ci_summary.py +10 -5
  3. {orbix-3.0.0 → orbix-4.0.0}/.github/sibling-pins.txt +0 -2
  4. {orbix-3.0.0 → orbix-4.0.0}/.github/workflows/ci.yml +10 -10
  5. orbix-4.0.0/.github/workflows/dependabot-automerge.yml +27 -0
  6. {orbix-3.0.0 → orbix-4.0.0}/.github/workflows/docs.yml +2 -2
  7. {orbix-3.0.0 → orbix-4.0.0}/.github/workflows/hygiene.yml +2 -2
  8. {orbix-3.0.0 → orbix-4.0.0}/.github/workflows/publish-to-pypi.yml +4 -4
  9. {orbix-3.0.0 → orbix-4.0.0}/.github/workflows/release-please.yml +1 -1
  10. {orbix-3.0.0 → orbix-4.0.0}/.github/workflows/upstream.yml +4 -4
  11. {orbix-3.0.0 → orbix-4.0.0}/.pre-commit-config.yaml +2 -2
  12. {orbix-3.0.0 → orbix-4.0.0}/CHANGELOG.md +11 -0
  13. {orbix-3.0.0 → orbix-4.0.0}/PKG-INFO +16 -8
  14. {orbix-3.0.0 → orbix-4.0.0}/README.md +11 -2
  15. {orbix-3.0.0 → orbix-4.0.0}/docs/examples/orbits.md +5 -5
  16. {orbix-3.0.0 → orbix-4.0.0}/docs/examples/prepared.md +6 -6
  17. {orbix-3.0.0 → orbix-4.0.0}/docs/gallery.md +9 -9
  18. {orbix-3.0.0 → orbix-4.0.0}/docs/index.md +1 -1
  19. {orbix-3.0.0 → orbix-4.0.0}/pyproject.toml +7 -8
  20. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/_version.py +2 -2
  21. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/orbit.py +16 -16
  22. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/viz/_prepare.py +26 -20
  23. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/viz/anim.py +15 -13
  24. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/viz/orbit.py +15 -13
  25. {orbix-3.0.0 → orbix-4.0.0}/tests/test_orbit.py +22 -20
  26. {orbix-3.0.0 → orbix-4.0.0}/tests/test_sky_convention.py +4 -2
  27. {orbix-3.0.0 → orbix-4.0.0}/tests/test_viz_anim.py +5 -5
  28. {orbix-3.0.0 → orbix-4.0.0}/tests/test_viz_orbit.py +2 -2
  29. {orbix-3.0.0 → orbix-4.0.0}/tests/test_viz_package.py +1 -1
  30. {orbix-3.0.0 → orbix-4.0.0}/tests/test_viz_prepared.py +74 -66
  31. {orbix-3.0.0 → orbix-4.0.0}/.codespellrc +0 -0
  32. {orbix-3.0.0 → orbix-4.0.0}/.editorconfig +0 -0
  33. {orbix-3.0.0 → orbix-4.0.0}/.gitattributes +0 -0
  34. {orbix-3.0.0 → orbix-4.0.0}/.github/zizmor.yml +0 -0
  35. {orbix-3.0.0 → orbix-4.0.0}/.gitignore +0 -0
  36. {orbix-3.0.0 → orbix-4.0.0}/.python-version +0 -0
  37. {orbix-3.0.0 → orbix-4.0.0}/.readthedocs.yaml +0 -0
  38. {orbix-3.0.0 → orbix-4.0.0}/.zenodo.json +0 -0
  39. {orbix-3.0.0 → orbix-4.0.0}/CITATION.cff +0 -0
  40. {orbix-3.0.0 → orbix-4.0.0}/LICENSE +0 -0
  41. {orbix-3.0.0 → orbix-4.0.0}/SECURITY.md +0 -0
  42. {orbix-3.0.0 → orbix-4.0.0}/docs/conf.py +0 -0
  43. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/__init__.py +0 -0
  44. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/equations/__init__.py +0 -0
  45. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/equations/lambert.py +0 -0
  46. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/equations/orbit.py +0 -0
  47. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/equations/phase.py +0 -0
  48. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/equations/propagation.py +0 -0
  49. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/kepler/__init__.py +0 -0
  50. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/kepler/core.py +0 -0
  51. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/kepler/markley.py +0 -0
  52. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/kepler/shortcuts/__init__.py +0 -0
  53. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/kepler/shortcuts/fixed_e.py +0 -0
  54. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/kepler/shortcuts/grid.py +0 -0
  55. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/kepler/shortcuts/guess.py +0 -0
  56. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/observatory/__init__.py +0 -0
  57. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/observatory/data/L2_halo_orbit_six_month.npz +0 -0
  58. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/observatory/keepout.py +0 -0
  59. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/observatory/observatory.py +0 -0
  60. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/observatory/orbit.py +0 -0
  61. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/observatory/solar_system.py +0 -0
  62. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/py.typed +0 -0
  63. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/viz/__init__.py +0 -0
  64. {orbix-3.0.0 → orbix-4.0.0}/src/orbix/viz/_require.py +0 -0
  65. {orbix-3.0.0 → orbix-4.0.0}/tests/conftest.py +0 -0
  66. {orbix-3.0.0 → orbix-4.0.0}/tests/test_dependency_floors.py +0 -0
  67. {orbix-3.0.0 → orbix-4.0.0}/tests/test_equations_grads.py +0 -0
  68. {orbix-3.0.0 → orbix-4.0.0}/tests/test_fixed_e_solvers.py +0 -0
  69. {orbix-3.0.0 → orbix-4.0.0}/tests/test_grid_solvers.py +0 -0
  70. {orbix-3.0.0 → orbix-4.0.0}/tests/test_internal_refs_guard.py +0 -0
  71. {orbix-3.0.0 → orbix-4.0.0}/tests/test_kepler_core.py +0 -0
  72. {orbix-3.0.0 → orbix-4.0.0}/tests/test_kepler_grads.py +0 -0
  73. {orbix-3.0.0 → orbix-4.0.0}/tests/test_kepler_markley.py +0 -0
  74. {orbix-3.0.0 → orbix-4.0.0}/tests/test_lambert.py +0 -0
  75. {orbix-3.0.0 → orbix-4.0.0}/tests/test_observatory.py +0 -0
  76. {orbix-3.0.0 → orbix-4.0.0}/tests/test_observatory_wrapper.py +0 -0
  77. {orbix-3.0.0 → orbix-4.0.0}/tests/test_vs_exosims.py +0 -0
  78. {orbix-3.0.0 → orbix-4.0.0}/tools/check_internal_refs.py +0 -0
@@ -26,5 +26,8 @@ updates:
26
26
  groups:
27
27
  hooks:
28
28
  patterns: ["*"]
29
+ ignore:
30
+ # ruff moves with the ruff pin in .github/workflows; bump both together by hand.
31
+ - dependency-name: "*ruff-pre-commit*"
29
32
  commit-message:
30
33
  prefix: "ci"
@@ -3,8 +3,10 @@
3
3
  Usage: python ci_summary.py junit.xml [--title TITLE] [--budget-seconds N]
4
4
 
5
5
  Appends markdown to $GITHUB_STEP_SUMMARY (stdout when unset). Exits non-zero when the
6
- summed test time exceeds the budget, or when any test was skipped (a skip hides a
7
- missing dependency).
6
+ suite's wall time exceeds the budget, or when any test was skipped (a skip hides a
7
+ missing dependency). The wall time is the junit testsuite time, which pytest measures
8
+ over the whole session (collection included) and which stays correct under
9
+ pytest-xdist; the summed per-test time is reported alongside it.
8
10
  """
9
11
 
10
12
  import argparse
@@ -26,6 +28,8 @@ def main():
26
28
  print(f"{args.junit} not found: the test step did not run")
27
29
  return 1
28
30
  root = ET.parse(args.junit).getroot()
31
+ suites = [root] if root.tag == "testsuite" else root.findall("testsuite")
32
+ wall = sum(float(suite.get("time", 0.0)) for suite in suites)
29
33
  cases = []
30
34
  skipped = []
31
35
  for case in root.iter("testcase"):
@@ -43,8 +47,9 @@ def main():
43
47
  f"### {args.title}",
44
48
  "",
45
49
  f"- tests: {len(cases)}, skipped: {len(skipped)}",
46
- f"- summed test time: {total:.1f} s"
50
+ f"- wall time: {wall:.1f} s"
47
51
  + (f" (budget {args.budget_seconds:.0f} s)" if args.budget_seconds else ""),
52
+ f"- summed test time: {total:.1f} s",
48
53
  "",
49
54
  "| slowest tests | seconds |",
50
55
  "|---|---|",
@@ -64,8 +69,8 @@ def main():
64
69
  print(text)
65
70
 
66
71
  failed = False
67
- if args.budget_seconds and total > args.budget_seconds:
68
- print(f"suite time {total:.1f} s exceeds budget {args.budget_seconds:.0f} s")
72
+ if args.budget_seconds and wall > args.budget_seconds:
73
+ print(f"wall time {wall:.1f} s exceeds budget {args.budget_seconds:.0f} s")
69
74
  failed = True
70
75
  if skipped and not args.allow_skips:
71
76
  print(f"{len(skipped)} tests were skipped")
@@ -1,5 +1,3 @@
1
1
  # Unreleased sibling libraries, applied as uv overrides so each is installed at a pinned main
2
2
  # commit whatever version bounds other packages declare (a breaking change waiting for its
3
3
  # release tag reports the old major version). Move a pin deliberately; drop it once PyPI covers it.
4
- hwoutils @ git+https://github.com/CoreySpohn/hwoutils@20f6973e39954321feba7efcf781fc217016a46f
5
- eyepiece @ git+https://github.com/CoreySpohn/eyepiece@c7a4bea5a34b8751b4791bf74ea35bcd9da54cb1
@@ -46,18 +46,18 @@ jobs:
46
46
  matrix:
47
47
  python-version: ["3.12"]
48
48
  steps:
49
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
49
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
50
50
  with:
51
51
  persist-credentials: false
52
52
 
53
- - uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
53
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
54
54
  with:
55
55
  python-version: ${{ matrix.python-version }}
56
56
  enable-cache: true
57
57
  cache-dependency-glob: "pyproject.toml"
58
58
 
59
59
  - name: Restore the JAX compile cache
60
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
60
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
61
61
  with:
62
62
  path: .jax_cache
63
63
  key: jax-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ github.sha }}
@@ -77,7 +77,7 @@ jobs:
77
77
  echo "VIRTUAL_ENV=$PWD/.venv" >> "$GITHUB_ENV"
78
78
  echo "$PWD/.venv/bin" >> "$GITHUB_PATH"
79
79
  # One resolve, so pinned siblings satisfy the package floors.
80
- uv pip install --python .venv/bin/python -e ".[test]" --override .github/sibling-pins.txt ruff==0.15.18 deptry ty==0.0.96
80
+ uv pip install --python .venv/bin/python -e ".[test]" --override .github/sibling-pins.txt ruff==0.17.3 deptry ty==0.0.96
81
81
 
82
82
  - name: Lint and formatting
83
83
  run: |
@@ -108,18 +108,18 @@ jobs:
108
108
  runs-on: ubuntu-latest
109
109
  timeout-minutes: 20
110
110
  steps:
111
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
111
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
112
112
  with:
113
113
  persist-credentials: false
114
114
  fetch-depth: 0 # hatch-vcs needs tags for the docs version
115
115
 
116
- - uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
116
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
117
117
  with:
118
118
  python-version: "3.12"
119
119
  enable-cache: true
120
120
  cache-dependency-glob: "pyproject.toml"
121
121
 
122
- - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
122
+ - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
123
123
  with:
124
124
  path: .jax_cache
125
125
  key: jax-docs-${{ hashFiles('pyproject.toml') }}-${{ github.sha }}
@@ -163,17 +163,17 @@ jobs:
163
163
  runs-on: ubuntu-latest
164
164
  timeout-minutes: 90
165
165
  steps:
166
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
166
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
167
167
  with:
168
168
  persist-credentials: false
169
169
 
170
- - uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
170
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
171
171
  with:
172
172
  python-version: "3.12"
173
173
  enable-cache: true
174
174
  cache-dependency-glob: "pyproject.toml"
175
175
 
176
- - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
176
+ - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
177
177
  with:
178
178
  path: .jax_cache
179
179
  key: jax-slow-${{ hashFiles('pyproject.toml') }}-${{ github.sha }}
@@ -0,0 +1,27 @@
1
+ # Squash-merges Dependabot pull requests once the branch ruleset's required checks pass.
2
+ # Only patch and minor updates qualify; a major bump waits for a person.
3
+ # Needs "Allow auto-merge" and a ruleset on main with required status checks.
4
+ name: Dependabot auto-merge
5
+
6
+ on: pull_request
7
+
8
+ permissions: {}
9
+
10
+ jobs:
11
+ automerge:
12
+ name: Enable auto-merge
13
+ if: github.event.pull_request.user.login == 'dependabot[bot]'
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ contents: write
17
+ pull-requests: write
18
+ steps:
19
+ - name: Read the update metadata
20
+ id: metadata
21
+ uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
22
+ - name: Enable auto-merge for patch and minor updates
23
+ if: contains(fromJSON('["version-update:semver-patch", "version-update:semver-minor"]'), steps.metadata.outputs.update-type)
24
+ env:
25
+ PR_URL: ${{ github.event.pull_request.html_url }}
26
+ GH_TOKEN: ${{ github.token }}
27
+ run: gh pr merge --auto --squash "$PR_URL"
@@ -16,13 +16,13 @@ jobs:
16
16
  runs-on: ubuntu-latest
17
17
  timeout-minutes: 20
18
18
  steps:
19
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
19
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20
20
  with:
21
21
  persist-credentials: false
22
22
  fetch-depth: 0
23
23
 
24
24
  - name: Install uv
25
- uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
25
+ uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
26
26
  with:
27
27
  enable-cache: true
28
28
 
@@ -22,11 +22,11 @@ jobs:
22
22
  runs-on: ubuntu-latest
23
23
  timeout-minutes: 10
24
24
  steps:
25
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
25
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26
26
  with:
27
27
  persist-credentials: false
28
28
 
29
- - uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
29
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
30
30
 
31
31
  - name: Lint workflows (zizmor)
32
32
  run: uvx zizmor --format=github --min-severity=medium .github
@@ -13,11 +13,11 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
 
15
15
  steps:
16
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
16
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
17
17
  with:
18
18
  persist-credentials: false
19
19
  - name: Set up Python
20
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
20
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
21
21
  with:
22
22
  python-version: "3.x"
23
23
  - name: Install pypa/build
@@ -29,7 +29,7 @@ jobs:
29
29
  - name: Build a binary wheel and a source tarball
30
30
  run: python3 -m build
31
31
  - name: Store the distribution packages
32
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
32
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
33
33
  with:
34
34
  name: python-package-distributions
35
35
  path: dist/
@@ -49,7 +49,7 @@ jobs:
49
49
 
50
50
  steps:
51
51
  - name: Download all the dists
52
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
52
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
53
53
  with:
54
54
  name: python-package-distributions
55
55
  path: dist/
@@ -15,7 +15,7 @@ jobs:
15
15
  contents: write
16
16
  pull-requests: write
17
17
  steps:
18
- - uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
18
+ - uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
19
19
  with:
20
20
  # this assumes that you have created a personal access token
21
21
  # (PAT) and configured it as a GitHub action secret named
@@ -28,11 +28,11 @@ jobs:
28
28
  runs-on: ubuntu-latest
29
29
  timeout-minutes: 30
30
30
  steps:
31
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
31
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32
32
  with:
33
33
  persist-credentials: false
34
34
 
35
- - uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
35
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
36
36
  with:
37
37
  python-version: "3.12"
38
38
  enable-cache: true
@@ -70,11 +70,11 @@ jobs:
70
70
  runs-on: ubuntu-latest
71
71
  timeout-minutes: 30
72
72
  steps:
73
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
73
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
74
74
  with:
75
75
  persist-credentials: false
76
76
 
77
- - uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
77
+ - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
78
78
  with:
79
79
  python-version: "3.12"
80
80
  enable-cache: true
@@ -15,13 +15,13 @@ repos:
15
15
  args: [--pytest-test-first]
16
16
  - id: end-of-file-fixer
17
17
  - repo: https://github.com/astral-sh/ruff-pre-commit
18
- rev: v0.15.18
18
+ rev: v0.17.3
19
19
  hooks:
20
20
  - id: ruff-check
21
21
  args: [--fix]
22
22
  - id: ruff-format
23
23
  - repo: https://github.com/codespell-project/codespell
24
- rev: v2.4.1
24
+ rev: v2.4.3
25
25
  hooks:
26
26
  - id: codespell
27
27
  - repo: https://github.com/compilerla/conventional-pre-commit
@@ -43,6 +43,17 @@
43
43
  * The broken predict/pdet functions and the `discrete_e` factory were removed
44
44
  (they did not work correctly and had no working callers).
45
45
 
46
+ ## [4.0.0](https://github.com/CoreySpohn/orbix/compare/v3.0.0...v4.0.0) (2026-11-13)
47
+
48
+
49
+ ### ⚠ BREAKING CHANGES
50
+
51
+ * the time argument is time_jd
52
+
53
+ ### Code Refactoring
54
+
55
+ * the time argument is time_jd ([272453b](https://github.com/CoreySpohn/orbix/commit/272453b3cbb484c5b57358c7cac8e8f3adf05512))
56
+
46
57
  ## [3.0.0](https://github.com/CoreySpohn/orbix/compare/v2.0.0...v3.0.0) (2026-11-04)
47
58
 
48
59
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: orbix
3
- Version: 3.0.0
3
+ Version: 4.0.0
4
4
  Summary: A JAX library of functions useful for exoplanet simulations
5
5
  Project-URL: Homepage, https://github.com/CoreySpohn/orbix
6
6
  Project-URL: Issues, https://github.com/CoreySpohn/orbix/issues
@@ -34,7 +34,7 @@ Requires-Dist: jax>=0.4.34
34
34
  Requires-Dist: jaxtyping>=0.3.3
35
35
  Requires-Dist: numpy>=2.2
36
36
  Provides-Extra: docs
37
- Requires-Dist: eyepiece>=0.4.0; extra == 'docs'
37
+ Requires-Dist: eyepiece>=0.15.0; extra == 'docs'
38
38
  Requires-Dist: hwostyle>=1.7.0; extra == 'docs'
39
39
  Requires-Dist: ipython>=8.24; extra == 'docs'
40
40
  Requires-Dist: matplotlib>=3.11; extra == 'docs'
@@ -47,14 +47,13 @@ Provides-Extra: test
47
47
  Requires-Dist: astropy>=6.1; extra == 'test'
48
48
  Requires-Dist: beartype>=0.18.5; extra == 'test'
49
49
  Requires-Dist: exosims>=3.4.1; extra == 'test'
50
- Requires-Dist: eyepiece>=0.4.0; extra == 'test'
51
- Requires-Dist: hypothesis>=6.79.1; extra == 'test'
50
+ Requires-Dist: eyepiece>=0.15.0; extra == 'test'
51
+ Requires-Dist: hypothesis>=6.100.0; extra == 'test'
52
52
  Requires-Dist: manim<0.22,>=0.21; extra == 'test'
53
53
  Requires-Dist: matplotlib>=3.11; extra == 'test'
54
54
  Requires-Dist: mpmath>=1.3; extra == 'test'
55
55
  Requires-Dist: packaging>=23.2; extra == 'test'
56
56
  Requires-Dist: pillow<13,>=11; extra == 'test'
57
- Requires-Dist: pytest-cov>=1.0; extra == 'test'
58
57
  Requires-Dist: pytest-fail-slow>=0.1.0; extra == 'test'
59
58
  Requires-Dist: pytest-markdown-docs>=0.5.0; extra == 'test'
60
59
  Requires-Dist: pytest-testmon>=2.0.7; extra == 'test'
@@ -62,12 +61,21 @@ Requires-Dist: pytest-timeout>=1.3.1; extra == 'test'
62
61
  Requires-Dist: pytest-xdist>=2.5; extra == 'test'
63
62
  Requires-Dist: pytest>=7.3.2; extra == 'test'
64
63
  Provides-Extra: viz
65
- Requires-Dist: eyepiece>=0.4.0; extra == 'viz'
64
+ Requires-Dist: eyepiece>=0.15.0; extra == 'viz'
66
65
  Requires-Dist: matplotlib>=3.11; extra == 'viz'
67
66
  Description-Content-Type: text/markdown
68
67
 
69
68
  # orbix
70
69
 
70
+ <p align="center">
71
+ <a href="https://pypi.org/project/orbix/"><img src="https://img.shields.io/pypi/v/orbix.svg?style=flat-square&logo=pypi" alt="PyPI"/></a>
72
+ <a href="https://orbix.readthedocs.io"><img src="https://readthedocs.org/projects/orbix/badge/?version=latest&style=flat-square" alt="Documentation Status"/></a>
73
+ <a href="https://github.com/CoreySpohn/orbix/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/CoreySpohn/orbix/ci.yml?branch=main&style=flat-square&logo=github&label=tests" alt="Tests"/></a>
74
+ <a href="https://github.com/CoreySpohn/orbix/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square" alt="License"/></a>
75
+ <a href="https://github.com/CoreySpohn/orbix/blob/main/pyproject.toml"><img src="https://img.shields.io/badge/python-3.12%2B-blue.svg?style=flat-square&logo=python" alt="Python 3.12+"/></a>
76
+ <a href="https://doi.org/10.5281/zenodo.20819376"><img src="https://img.shields.io/badge/DOI-10.5281%2Fzenodo.20819376-blue?style=flat-square" alt="DOI"/></a>
77
+ </p>
78
+
71
79
  A JAX library of functions for exoplanet simulations: differentiable Keplerian
72
80
  orbit propagation and Kepler-equation solvers, plus solar-system geometry
73
81
  (observatory position, keepout) for the Habitable Worlds Observatory direct
@@ -97,8 +105,8 @@ orbit = KeplerianOrbit(
97
105
  t0_d=0.0,
98
106
  )
99
107
  trig_solver = get_grid_solver(level="scalar", E=False, trig=True)
100
- t_jd = jnp.linspace(2451545.0, 2451545.0 + 365.25, 5)
101
- r_AU, phase_angle_rad, dist_AU = orbit.propagate(trig_solver, t_jd, Ms_kg=1.989e30)
108
+ time_jd = jnp.linspace(2451545.0, 2451545.0 + 365.25, 5)
109
+ r_AU, phase_angle_rad, dist_AU = orbit.propagate(trig_solver, time_jd, Ms_kg=1.989e30)
102
110
  print(r_AU.shape) # (1, 3, 5): (K orbits, xyz, T times)
103
111
  ```
104
112
 
@@ -1,5 +1,14 @@
1
1
  # orbix
2
2
 
3
+ <p align="center">
4
+ <a href="https://pypi.org/project/orbix/"><img src="https://img.shields.io/pypi/v/orbix.svg?style=flat-square&logo=pypi" alt="PyPI"/></a>
5
+ <a href="https://orbix.readthedocs.io"><img src="https://readthedocs.org/projects/orbix/badge/?version=latest&style=flat-square" alt="Documentation Status"/></a>
6
+ <a href="https://github.com/CoreySpohn/orbix/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/CoreySpohn/orbix/ci.yml?branch=main&style=flat-square&logo=github&label=tests" alt="Tests"/></a>
7
+ <a href="https://github.com/CoreySpohn/orbix/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square" alt="License"/></a>
8
+ <a href="https://github.com/CoreySpohn/orbix/blob/main/pyproject.toml"><img src="https://img.shields.io/badge/python-3.12%2B-blue.svg?style=flat-square&logo=python" alt="Python 3.12+"/></a>
9
+ <a href="https://doi.org/10.5281/zenodo.20819376"><img src="https://img.shields.io/badge/DOI-10.5281%2Fzenodo.20819376-blue?style=flat-square" alt="DOI"/></a>
10
+ </p>
11
+
3
12
  A JAX library of functions for exoplanet simulations: differentiable Keplerian
4
13
  orbit propagation and Kepler-equation solvers, plus solar-system geometry
5
14
  (observatory position, keepout) for the Habitable Worlds Observatory direct
@@ -29,8 +38,8 @@ orbit = KeplerianOrbit(
29
38
  t0_d=0.0,
30
39
  )
31
40
  trig_solver = get_grid_solver(level="scalar", E=False, trig=True)
32
- t_jd = jnp.linspace(2451545.0, 2451545.0 + 365.25, 5)
33
- r_AU, phase_angle_rad, dist_AU = orbit.propagate(trig_solver, t_jd, Ms_kg=1.989e30)
41
+ time_jd = jnp.linspace(2451545.0, 2451545.0 + 365.25, 5)
42
+ r_AU, phase_angle_rad, dist_AU = orbit.propagate(trig_solver, time_jd, Ms_kg=1.989e30)
34
43
  print(r_AU.shape) # (1, 3, 5): (K orbits, xyz, T times)
35
44
  ```
36
45
 
@@ -76,7 +76,7 @@ orbit = KeplerianOrbit(
76
76
  a_AU=A_AU, e=ECC, W_rad=BIG_OMEGA_RAD, i_rad=INC_RAD,
77
77
  w_rad=SMALL_OMEGA_RAD, M0_rad=M0_RAD, t0_d=T0_D,
78
78
  )
79
- t_jd = jnp.linspace(T0_D, T0_D + PERIOD_D, 240)
79
+ time_jd = jnp.linspace(T0_D, T0_D + PERIOD_D, 240)
80
80
 
81
81
  # A second cast for the 3D views: three near-coplanar planets, the way a
82
82
  # planetary system actually sits. Keeping the mutual inclinations small (7 to
@@ -113,7 +113,7 @@ OUTER_PERIOD_D = 2.35**1.5 * 365.25
113
113
  t_system = jnp.linspace(T0_D, T0_D + OUTER_PERIOD_D, 240)
114
114
 
115
115
  result = viz.plot_sky_track(
116
- orbit, t_jd, Ms_kg=MSUN_KG, dist_pc=10.0,
116
+ orbit, time_jd, Ms_kg=MSUN_KG, dist_pc=10.0,
117
117
  style=styles["planet b"], iwa_arcsec=0.06,
118
118
  )
119
119
  ```
@@ -136,7 +136,7 @@ rng = np.random.default_rng(7)
136
136
  SIGMA_ARCSEC = 0.008
137
137
  t_obs = T0_D + np.array([70.0, 250.0, 430.0])
138
138
  ra_true, dec_true = orbit.position_arcsec(
139
- t_jd=jnp.asarray(t_obs), Ms_kg=MSUN_KG, dist_pc=10.0
139
+ time_jd=jnp.asarray(t_obs), Ms_kg=MSUN_KG, dist_pc=10.0
140
140
  )
141
141
  # Observations are (xy, xerr, yerr): positions shaped (P, 2) and one-sigma
142
142
  # errors along RA and Dec.
@@ -161,7 +161,7 @@ draws = dict(
161
161
  )
162
162
  fan = KeplerianOrbit.from_period(**draws, Ms_kg=MSUN_KG)
163
163
  result = viz.plot_sky_track(
164
- fan, t_jd, Ms_kg=MSUN_KG, dist_pc=10.0,
164
+ fan, time_jd, Ms_kg=MSUN_KG, dist_pc=10.0,
165
165
  style=styles["planet b"], iwa_arcsec=0.06, observations=epochs,
166
166
  )
167
167
  ```
@@ -220,7 +220,7 @@ for name, planet in zip(PLANETS, one_planet):
220
220
  # and keeps the scale equal on all three axes; the tick locator keeps the
221
221
  # shorter axis from crowding its labels together.
222
222
  z_half = 1.15 * float(np.max(np.abs(
223
- np.asarray(system.propagate(t_jd=t_system, Ms_kg=MSUN_KG)[0])[:, 2]
223
+ np.asarray(system.propagate(time_jd=t_system, Ms_kg=MSUN_KG)[0])[:, 2]
224
224
  )))
225
225
  xy_half = ax3d.get_xlim()[1]
226
226
  ax3d.set_zlim(-z_half, z_half)
@@ -94,7 +94,7 @@ rng = np.random.default_rng(0)
94
94
  # Observed positions: the true orbit at three epochs, perturbed by the error.
95
95
  SIGMA_ARCSEC = 0.008
96
96
  t_obs = T0_D + np.array([70.0, 250.0, 430.0])
97
- ra, dec = orbit.position_arcsec(t_jd=t_obs, Ms_kg=Msun2kg, dist_pc=DIST_PC)
97
+ ra, dec = orbit.position_arcsec(time_jd=t_obs, Ms_kg=Msun2kg, dist_pc=DIST_PC)
98
98
  xy_obs = np.column_stack([np.asarray(ra)[0], np.asarray(dec)[0]])
99
99
  xy_obs = xy_obs + SIGMA_ARCSEC * rng.standard_normal(xy_obs.shape)
100
100
  sigma = np.full(len(t_obs), SIGMA_ARCSEC)
@@ -115,12 +115,12 @@ fan = KeplerianOrbit.from_period(
115
115
  weights = rng.dirichlet(np.full(K, 3.0))
116
116
 
117
117
  # One orbital period in 180 steps of about three days.
118
- t_jd = np.linspace(T0_D, T0_D + PERIOD_D, 181)
118
+ time_jd = np.linspace(T0_D, T0_D + PERIOD_D, 181)
119
119
  ```
120
120
 
121
121
  ## A still of the fan
122
122
 
123
- `prepare_sky_view` propagates every draw over `t_jd` and returns one
123
+ `prepare_sky_view` propagates every draw over `time_jd` and returns one
124
124
  `TrackView`. Each draw is its own `Path` (`path/0` to `path/39`), so every
125
125
  draw stays addressable, while `source_ids="planet b"` names the one planet
126
126
  they all describe, so they share one color from the cast. The weights become
@@ -132,7 +132,7 @@ part of the view, not options.
132
132
  ```{code-cell} ipython3
133
133
  view = prepare_sky_view(
134
134
  fan,
135
- t_jd=t_jd,
135
+ time_jd=time_jd,
136
136
  Ms_kg=Msun2kg,
137
137
  dist_pc=DIST_PC,
138
138
  source_ids="planet b",
@@ -161,7 +161,7 @@ keeps a sliding window of that many samples, here about ninety days.
161
161
  ```{code-cell} ipython3
162
162
  sequence = prepare_sky_track(
163
163
  fan,
164
- t_jd=t_jd,
164
+ time_jd=time_jd,
165
165
  Ms_kg=Msun2kg,
166
166
  dist_pc=DIST_PC,
167
167
  source_ids="planet b",
@@ -302,5 +302,5 @@ behavior.
302
302
  err)`.
303
303
  - `animate_orbit(kind="sky")` refuses `style=`, `base_ms=`, and `marks=`,
304
304
  which apply to `kind="3d"` only; sky colors come from the cast. It needs
305
- `t_jd=` for bare tracks too, because the sample times drive its clock and
305
+ `time_jd=` for bare tracks too, because the sample times drive its clock and
306
306
  its physical-time playback.
@@ -62,7 +62,7 @@ orbit = KeplerianOrbit(
62
62
  a_AU=A_AU, e=ECC, W_rad=BIG_OMEGA_RAD, i_rad=INC_RAD,
63
63
  w_rad=SMALL_OMEGA_RAD, M0_rad=M0_RAD, t0_d=T0_D,
64
64
  )
65
- t_jd = jnp.linspace(T0_D, T0_D + PERIOD_D, 240)
65
+ time_jd = jnp.linspace(T0_D, T0_D + PERIOD_D, 240)
66
66
 
67
67
  # A second cast for the 3D views: three near-coplanar planets, the way a
68
68
  # planetary system actually sits. Keeping the mutual inclinations small (7 to
@@ -109,7 +109,7 @@ cannot see into.
109
109
 
110
110
  ```{code-cell} ipython3
111
111
  result = viz.plot_sky_track(
112
- orbit, t_jd, Ms_kg=MSUN_KG, dist_pc=10.0,
112
+ orbit, time_jd, Ms_kg=MSUN_KG, dist_pc=10.0,
113
113
  style=styles["planet b"], iwa_arcsec=0.06,
114
114
  )
115
115
  ```
@@ -127,7 +127,7 @@ rng = np.random.default_rng(11)
127
127
  SIGMA_ARCSEC = 0.008
128
128
  t_obs = T0_D + np.array([70.0, 250.0, 430.0])
129
129
  ra_true, dec_true = orbit.position_arcsec(
130
- t_jd=jnp.asarray(t_obs), Ms_kg=MSUN_KG, dist_pc=10.0
130
+ time_jd=jnp.asarray(t_obs), Ms_kg=MSUN_KG, dist_pc=10.0
131
131
  )
132
132
  epochs = (
133
133
  np.column_stack([
@@ -152,7 +152,7 @@ fan = KeplerianOrbit.from_period(
152
152
  )
153
153
  weights = rng.dirichlet(np.full(K, 3.0))
154
154
  result = viz.plot_sky_track(
155
- fan, t_jd, Ms_kg=MSUN_KG, dist_pc=10.0,
155
+ fan, time_jd, Ms_kg=MSUN_KG, dist_pc=10.0,
156
156
  style=styles["planet b"], weights=weights, iwa_arcsec=0.06,
157
157
  observations=epochs,
158
158
  )
@@ -218,7 +218,7 @@ for name, planet in zip(PLANETS, one_planet):
218
218
  # and keeps the scale equal on all three axes; the tick locator keeps the
219
219
  # shorter axis from crowding its labels together.
220
220
  z_half = 1.15 * float(np.max(np.abs(
221
- np.asarray(system.propagate(t_jd=t_system, Ms_kg=MSUN_KG)[0])[:, 2]
221
+ np.asarray(system.propagate(time_jd=t_system, Ms_kg=MSUN_KG)[0])[:, 2]
222
222
  )))
223
223
  xy_half = ax3d.get_xlim()[1]
224
224
  ax3d.set_zlim(-z_half, z_half)
@@ -299,11 +299,11 @@ from eyepiece.style import snapshot_profile
299
299
  from matplotlib.font_manager import FontProperties
300
300
 
301
301
  view = viz.prepare_sky_view(
302
- fan, t_jd=t_jd, Ms_kg=MSUN_KG, dist_pc=10.0, source_ids="planet b",
302
+ fan, time_jd=time_jd, Ms_kg=MSUN_KG, dist_pc=10.0, source_ids="planet b",
303
303
  weights=weights, observations=epochs, iwa_arcsec=0.06,
304
304
  )
305
305
  sequence = viz.prepare_sky_track(
306
- orbit, t_jd=t_jd, Ms_kg=MSUN_KG, dist_pc=10.0, source_ids="planet b",
306
+ orbit, time_jd=time_jd, Ms_kg=MSUN_KG, dist_pc=10.0, source_ids="planet b",
307
307
  observations=epochs, iwa_arcsec=0.06, history=60,
308
308
  )
309
309
  cast = SourceCast(["planet b"])
@@ -354,7 +354,7 @@ variants = [
354
354
  fig, axes = plt.subplots(2, 3, figsize=(12.0, 7.4), layout="constrained")
355
355
  for ax, (label, kw) in zip(axes.ravel(), variants):
356
356
  viz.plot_sky_track(
357
- fan, t_jd, Ms_kg=MSUN_KG, dist_pc=10.0, ax=ax,
357
+ fan, time_jd, Ms_kg=MSUN_KG, dist_pc=10.0, ax=ax,
358
358
  **{"style": styles["planet b"], **kw},
359
359
  )
360
360
  ax.set_title(label, fontsize=10.5)
@@ -457,7 +457,7 @@ Positions are `(N, 3)`, one row per point, while `propagate` returns
457
457
  `(K, 3, N)`; transpose one orbit out of the batch to feed it.
458
458
 
459
459
  ```{code-cell} ipython3
460
- xyz = np.asarray(orbit.propagate(t_jd=t_jd, Ms_kg=MSUN_KG)[0][0]).T
460
+ xyz = np.asarray(orbit.propagate(time_jd=time_jd, Ms_kg=MSUN_KG)[0][0]).T
461
461
  depth = viz.depth_scale(xyz, azim_deg=-50.0, elev_deg=25.0)
462
462
  mult = viz.depth_size(depth)
463
463
 
@@ -17,7 +17,7 @@ orbit = KeplerianOrbit(
17
17
  a_AU=1.0, e=0.2, W_rad=0.5, i_rad=1.0, w_rad=0.3, M0_rad=0.0, t0_d=0.0
18
18
  )
19
19
  r_AU, phase_angle_rad, dist_AU = orbit.propagate(
20
- t_jd=jnp.linspace(0.0, 365.0, 100), Ms_kg=1.99e30
20
+ time_jd=jnp.linspace(0.0, 365.0, 100), Ms_kg=1.99e30
21
21
  )
22
22
  ```
23
23
 
@@ -47,7 +47,7 @@ docs = [
47
47
  "sphinx_autodoc_typehints>=2.1",
48
48
  "ipython>=8.24",
49
49
  "matplotlib>=3.11",
50
- "eyepiece>=0.4.0",
50
+ "eyepiece>=0.15.0",
51
51
  "hwostyle>=1.7.0",
52
52
  ]
53
53
  # The viz tests import matplotlib and eyepiece, so the test extra has to carry
@@ -56,8 +56,7 @@ docs = [
56
56
  test = [
57
57
  "pytest>=7.3.2",
58
58
  "beartype>=0.18.5",
59
- "hypothesis>=6.79.1",
60
- "pytest-cov>=1.0",
59
+ "hypothesis>=6.100.0",
61
60
  "pytest-xdist>=2.5",
62
61
  "pytest-testmon>=2.0.7",
63
62
  "pytest-markdown-docs>=0.5.0",
@@ -73,11 +72,11 @@ test = [
73
72
  "astropy>=6.1",
74
73
  "packaging>=23.2",
75
74
  ]
76
- # eyepiece>=0.4.0 for trail's `depth=` argument, which plot_orbit forwards;
77
- # earlier eyepiece carries every other interface orbix.viz calls (sky_fan,
78
- # trail, label_au, SourceStyles, PlotResult, animate), checked by interface in
79
- # the test suite rather than by version string.
80
- viz = ["eyepiece>=0.4.0", "matplotlib>=3.11"]
75
+ # eyepiece>=0.15.0: orbix.viz imports eyepiece.prepared (added in 0.5.0) and
76
+ # trail's `depth=` argument, and eyepiece before 0.15.0 renders through the
77
+ # hwostyle colormap that hwostyle 1.7 deprecates, which warnings-as-errors
78
+ # turns into a failure at the declared hwostyle floor.
79
+ viz = ["eyepiece>=0.15.0", "matplotlib>=3.11"]
81
80
 
82
81
  [tool.ruff.lint]
83
82
  select = ["D", "E", "F", "I", "B", "UP", "RUF", "NPY"]
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '3.0.0'
22
- __version_tuple__ = version_tuple = (3, 0, 0)
21
+ __version__ = version = '4.0.0'
22
+ __version_tuple__ = version_tuple = (4, 0, 0)
23
23
 
24
24
  __commit_id__ = commit_id = None