python - pyephem advances observer date on NeverUpError -
First question: I am searching on a large group of latitude / Set Bar Some of these points are near the pillars. The following code, NeverUpError
Moon = Effam. Pisces () obs = ephem.Observer () obs.lat = '89 'extends observer's date on obs.lon =' 0 'obs.date = ephem.Date (' 01/01/2014 ') print obs. Date # 2014/1/1 00:00:00 obs.next_rising (moon) # traceback (most recent call final): # ... #imam. Never at all: 'Moon' below the horizon prints on 2014/1/1 12:04:01 print obs.date # 2014/1/1 12:04:01
Is there a way to check before
Second question: Already related, is the library thread safe? I set it to calculate several dates at a time in a different thread using the queue and threading module.
First answer: The fact that the date of change, a bug in PyEphem , Which should be fixed when the next version is released! For now, setting up a date back is a simple solution.
The second answer: until each thread its own Moon
and Observer
objects, that any other threads Without being wasted, you should be able to do your computations.
Comments
Post a Comment