Skip to content

Use elapsed time in fast Lyapunov estimates - #682

Merged
adrn merged 2 commits into
adrn:mainfrom
rpinho:fix-lyapunov-time-grid
Nov 26, 2026
Merged

adrn merged 2 commits into
adrn:mainfrom
rpinho:fix-lyapunov-time-grid

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes

fast_lyapunov_max produces a time grid that extends past the requested duration at t1=0. Setting t1 also changes the integration duration and the exponent denominator. The patch builds the grid from the start time and timestep and divides by elapsed time. The test shifts the start time for an NFW orbit and checks the grid and estimates with and without saving the orbit.

Checklist

  • Did you add tests?
  • Did you add documentation for your changes?
  • Did you reference any relevant issues?
  • Did you add a changelog entry? (see CHANGES.rst)
  • Are the CI tests passing?
  • Is the milestone set?

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

@adrn
adrn force-pushed the fix-lyapunov-time-grid branch from a450822 to eb82876 Compare November 26, 2026 00:58
@adrn adrn added this to the v1.13 milestone Nov 26, 2026
The pure-Python lyapunov_max had the same t1 bug as fast_lyapunov_max.
Add a test, and note the change in results in the changelog.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@adrn
adrn force-pushed the fix-lyapunov-time-grid branch from eb82876 to f0a4f18 Compare November 26, 2026 01:03
@adrn
adrn enabled auto-merge (squash) November 26, 2026 01:47
@adrn
adrn merged commit b234287 into adrn:main Nov 26, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants