Don Cross
62163ed509
Compare Python output to C output (not JavaScript).
...
I'm going to define the C output as the "most correct", and
compare all other languages to it.
2019-07-02 19:39:51 -04:00
Don Cross
9359b80c42
Fixed #46 - Python calculations exactly match C calculations.
...
The problem was that the Python "%" operator does not behave
exactly like the C function fmod(). However, there is a Python
function math.fmod() that does act just like its counterpart in C.
Now astro_check output is *identical* between Python and C,
at least on my Windows 10 laptop.
Reinstated "ctest diff" in unit tests to make sure the
two implementations stay in sync.
2019-07-02 19:19:36 -04:00
Don Cross
eb2a8c14d0
Python: finished all unit tests -- LunarApsis was the last one.
2019-07-02 14:13:31 -04:00
Don Cross
d01c4fd0a5
Python: Added tests for astronomy.Illumination().
...
I still need to add a test for SearchPeakMagnitude().
2019-07-01 17:00:28 -04:00
Don Cross
86674e3c73
Python: implemented rise/set tests and fixed associated bugs.
2019-06-30 18:58:04 -04:00
Don Cross
fa1ce83a00
Python testing: elongation test in progress.
2019-06-30 13:34:51 -04:00
Don Cross
0ab44ede69
Python: Added MoonPhase test. Fixed errors.
2019-06-29 23:43:38 -04:00
Don Cross
9d304850df
Python: Added seasons test and fixed errors uncovered by it.
2019-06-29 23:02:27 -04:00
Don Cross
f85025da31
Implemented astro_check in Python. Exercises major parts of the code.
...
There is still a slight discrepancy in calculations of altitude,azimuth
that is larger than between JS and C.
2019-06-26 21:12:27 -04:00
Don Cross
6d0ee59c1f
Python: starting to implement astro_check.
2019-06-26 19:12:59 -04:00
Don Cross
787812287c
Python: calling GeoMoon() without errors, but calculations not yet validated.
2019-06-24 15:25:28 -04:00
Don Cross
35017483cb
Fixed problem in Python MakeTime() function.y
2019-06-23 17:10:58 -04:00