mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-19 06:17:03 -04:00
Improved performance of Neptune apsis search.
The apsis search for Neptune was sampling 1000 points in its first pass. It turns out 100 is enough.
This commit is contained in:
@@ -5383,7 +5383,7 @@ def _SearchNeptuneApsis(startTime):
|
||||
t1 = startTime.AddDays(_NEPTUNE_ORBITAL_PERIOD * ( -30 / 360))
|
||||
t2 = startTime.AddDays(_NEPTUNE_ORBITAL_PERIOD * (+270 / 360))
|
||||
t_min = t_max = t1
|
||||
npoints = 1000
|
||||
npoints = 100
|
||||
interval = (t2.ut - t1.ut) / (npoints - 1)
|
||||
|
||||
for i in range(npoints):
|
||||
|
||||
Reference in New Issue
Block a user