Closed billyyarosh closed 1 week ago
Thank you for opening this issue, @billyyarosh I'm also quite happy to have feedback and to see that some people might be using the library.
I've opened #110 to fix the issue. This is a simple workaround as I haven't been able to identify a deeper problem with the algorithm. It feels right to set a limit to a loop anyway.
If you're interested, feel free to have a look and give a review. Otherwise, I will probably merge the fix over the weekend.
Description
It's not clear what's causing this infinite loop, but given specific coordinates and time data, we are running into infinite loops computing observation events for moon phases. I could only reproduce this for Nov 10, 2024, with longitudes in the western hemisphere.
Reproduction Steps
Expected behavior
Results returned
Actual behavior
Infinite Loop in
ObservationEvents
line 95.Output of delta value:
System configuration
astronoby version: 0.5.0 ruby version: ruby 3.1.4p223