Closed astropatel closed 8 years ago
I'll take a look. It might be that we just need to relax this tolerance. Note, however, that you are going down this code branch because you do not have jplephem installed. Using that module should produce more robust (and faster) performance for solar system bodies.
I finally identified the root cause of this failure - the ephemeris propagation was generating mean anomaly values outside of [0,2*pi), which caused the Newton-Raphson to freak out. Fixed by adding appropriate mod statements to the Observatory prototype, and verified that eccanom never fails to converge for any value of M in the valid range.
Dear all,
I encountered this "failure to converge" error while trying to run :
using the "template_WFIRST_EarthTwinHabZone.json" scriptfile.
It seems to have failed after the last mission times listed below:
I looked at the while loop in eccanom.py where the convergence occurs and printed out the errors the piece calculates as part of the condition for convergence. It seems the eccentric anomaly converges after only a few iterations as shown below. The entire run of 200 iterations produces 1.1368e-13 by the end of the run:
However, it doesn't ever reduce to the required tolerance level set by
which, in my case = 8.903988657493755e-16.
Any ideas? I've listed the full traceback below.