Skip to content

Fix #703: if event eval has not changed, keep the current step + Update to hifitime 4.3.0, enabling Lunar Time and Lunar Coordinated Time#706

Merged
ChristopherRabotin merged 2 commits into
masterfrom
fix/gh-703
May 2, 2026
Merged

Conversation

@ChristopherRabotin

Copy link
Copy Markdown
Member

Summary

Fix #703: if event eval has not changed, keep the current step

Architectural Changes

No change

New Features

  • Update to hifitime 4.3.0, enabling Lunar Time and Lunar Coordinated Time.

Improvements

No change

Bug Fixes

No change

Testing and validation

The test_analysis_event test was triggering the bug, so I simply executed that with the (easy) fix.

Documentation

This PR does not primarily deal with documentation changes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the hifitime dependency to version 4.3.0 and refactors the step adjustment logic in anise/src/analysis/utils.rs to handle cases where the event evaluation remains constant, preventing division by zero. Feedback was provided regarding a typo in a comment and a potential overflow vulnerability when delta_ratio is extremely small, which could cause a panic in hifitime. A suggestion was made to bound delta_ratio to ensure the calculated step remains within the maximum allowed limit.

Comment thread anise/src/analysis/utils.rs
@ChristopherRabotin

Copy link
Copy Markdown
Member Author

Added the first commit of #692 to this branch.

@ChristopherRabotin ChristopherRabotin merged commit 356aa28 into master May 2, 2026
19 checks passed
@ChristopherRabotin ChristopherRabotin deleted the fix/gh-703 branch May 7, 2026 19:55
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.

Analysis engine: adaptive step scanner might create a bad duration

1 participant