Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ObservationEvents infinite loop #110

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

rhannequin
Copy link
Owner

In some cases new iterations of rise-transit-set calculations are not more precise than the previous ones. Quite the opposite, it is apparently possible to loop indefinitely over some values without ever crossing the targeted precision.

This introduces a limit of 5 iterations. Passed this limit, it is admitted that the program in its current form will not achieve a better precision.

Fixes #109

In some cases new iterations of rise-transit-set calculations are not
more precise than the previous ones. Quite the opposite, it is
apparently possible to loop indefinitely over some values without ever
crossing the targeted precision.

This introduces a limit of 5 iterations. Passed this limit, it is
admitted that the program in its current form will not achieve a better
precision.

Fixes #109
Copy link

@billyyarosh billyyarosh left a comment

Choose a reason for hiding this comment

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

This was going to be my proposal, but I didn't understand the purpose enough to propose this myself :)

@rhannequin rhannequin merged commit 7a7a3d1 into main Nov 22, 2024
26 checks passed
@rhannequin rhannequin deleted the fix-observation-event-infinite-loop branch November 22, 2024 16:55
@billyyarosh
Copy link

Hey @rhannequin, can we get a bug fix release for this? ty

@rhannequin
Copy link
Owner Author

@billyyarosh Sure, that's my plan, however I just wanted to finish some accuracy investigations first.
Would you be able to tell me how urgent a new release is for you? I think I can proceed to my experiment by next week and then make a release, but if this is blocking a real-life project we can talk about it.
Thanks

@billyyarosh
Copy link

billyyarosh commented Dec 3, 2024

Yes, we can wait a couple of weeks. Thanks again.

@rhannequin
Copy link
Owner Author

@billyyarosh v0.6.0 has been published: https://rubygems.org/gems/astronoby/versions/0.6.0

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.

Infinite Loop Calculating Moon Observation Events
2 participants