Astronomy: Eclipse V0.2
Algorithms based on Meeus. See aeclipse.py for general description.
V0.2 fixes a bug in my implementation of solar eclipse time, and returns results. Note: It reports a magnitude of 2.0 for the solar eclipse of October 2023, whereas online sources suggest 0.9…Initial investigation suggests that the calculation used should only apply to a partial eclipse, and a different calculation should be used for annular eclipses [or NaN until new calculation included]. I am surprised that an annular eclipse is apparently not considered a type of partial eclipse. Workaround: Until fixed, ignore magnitude when the solar eclipse is not partial. Magnitudes of partial solar eclipses are ok, but not annular, hybrid or total. (The magnitude of lunar eclipses is OK). Valid solar magnitudes are accurate to 2 sig figs.
Note: To find the 2008 Feb 7 annular solar eclipse , an unusually precise date is required: Eg 2008+1.5/12 (1/12 or 2/12 will miss it). [So a smaller calendar stepsize is needed].