Skip to content

Fix ObservationEvents infinite loop#110

Merged
rhannequin merged 1 commit intomainfrom
fix-observation-event-infinite-loop
Nov 22, 2024
Merged

Fix ObservationEvents infinite loop#110
rhannequin merged 1 commit intomainfrom
fix-observation-event-infinite-loop

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
@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