-
Notifications
You must be signed in to change notification settings - Fork 103
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
Uszu gets unreliable #993
Comments
I have limited the number of iterations to 1000 as a test and everything seems to be working again. However, I have no idea how much this affects the calculation of the time points. |
I thought that Skyfield could be a nice replacement for pyephem. But when I examined this some years ago it just was not ready and it needed external files to be downloaded from internet source so I decided to wait. In the meantime: Would you mind share your changes? We could implement a fix at best |
Gow did you linit iterations? Would a parameter for the plugin be a solution? |
I have changed code directly in ephem, if then we would have to fork ephem, maybe we also get a pull request with a new parameter for the function through... But I think the best thing would be to replace the lib... ephem/init.py
|
Hi folks,
I have noticed several times that uszu unfortunately often works unreliably. sometimes it just seems to miss things.
What is worse, however, is that there are some scripts that control the brightness depending on the position of the sun and uszu only makes nonsense.
I then tried to debug this and noticed that a Python thread was running amok.
Permanently 100% CPU.
I have now been able to narrow down the problem to the ephem library. The problem is that the calculation of the position of the sun and the moon converges badly under some constellations (_find_rise_or_set). Unfortunately, this also explains why uszu sometimes runs completely without problems. I have installed a counter as a test, and the function currently does not converge even over 100 million iterations, and blocks the complete uszu .
There are also some issue entries in ephem
brandon-rhodes/pyephem#266
brandon-rhodes/pyephem#232
Unfortunately, nothing has happened for years
The text was updated successfully, but these errors were encountered: