Closed vvasuki closed 6 years ago
From the logs, it seems that the following call is returning 0:
jd_sunset = swe.rise_trans(jd_start=jd_start, body=swe.SUN, lon=city.longitude,
lat=city.latitude, rsmi=swe.CALC_SET | swe.BIT_DISC_CENTER)[1][0]
As https://github.com/astrorigin/pyswisseph/issues/13 shows, this is false alarm. Leaving thread open so as to raise an exception for illegal input.
Fixed vide 171b70731504de298a944ebc496ee304c0c8f7e9
The code was working yesterday - https://github.com/sanskrit-coders/jyotisha/issues/10 . After I did some non-functional changes (renaming functions, reformatting code and the like), I faced a brentq error, which I fixed. But now I get the below:
I fancy that karthik may be able to deduce what went wrong faster. In the meantime, I'll try to shift from doctests to pytest so as to enable continuous automated testing.