jyotisham / jyotisha

Python tools for the astronomical / astrological vedAnga of Hindus
MIT License
88 stars 52 forks source link

Insulate code from swisseph changes #43

Closed vvasuki closed 4 years ago

vvasuki commented 4 years ago

Motivation: https://github.com/sanskrit-coders/jyotisha/issues/40 illustrates the problem with depending on an external library.

So, best insulate our code from swisseph by adding a layer inbetween. Eventually, we should move to using NASA ephemerides data directly - thereby simplifying installation and distribution. Even ayanAMsha calculations can be done purely in python - not that hard.

vvasuki commented 4 years ago

Made some progress here with recent commits.

@karthikraman - you might need to update or discard the precomputed files. Separately, annual tests are failing - tracking in a different bug.

vvasuki commented 4 years ago

Much progress here. Fixed inconsistent time scale usage along the way. Particularly note the new comment at https://github.com/sanskrit-coders/jyotisha/blob/master/jyotisha/__init__.py .