EUPSForge / oorb_old

Automatically exported from code.google.com/p/oorb
GNU General Public License v3.0
0 stars 0 forks source link

Compare python binding results to command line results #4

Closed rhiannonlynne closed 9 years ago

rhiannonlynne commented 9 years ago

Add another test comparing calculation of ephemerides by the python bindings to the command line. Some uncertainty in my mind about what the timing should be compared to, but it does seem that the python version is not using n-body integration forward in time. Will have to talk to Mikael to double-check.

rhiannonlynne commented 9 years ago

[ewok:~/lsstRepos/oorb/python] lynnej% python test_2.py starting... /bin/rm test_out ; oorb --code=807 --task=ephemeris --orb-in=test_orbits.des --timespan=10 --step=1 > test_out Calculating ephemerides by command line took 0.401856 s Reading data back from file 0.061633 s Read 1089 ephemerides Created 10 unique times; 11 times total Reading 99 orbits required 0.003267 s JPL_ephemeris_init(): Could select correct record length for file ''. [ 49353.16 49353.16 49354.16 49355.16 49356.16 49357.16 49358.16 49359.16 49360.16 49361.16 49362.16] Ready for ephemeris generation .. 0.003741 s Calculating ephemerides by python required 0.269267 s min/max ra offsets -6.89510670782e-11 6.80984157952e-11 min/max dec offsets -6.64215349389e-11 9.27347088009e-11

rhiannonlynne commented 9 years ago

Actually the position comparison do indicate that the results are the same and it's using nobody (I had the wing timescale before).

Python seems faster for some reason.