shbhuk / barycorrpy

Python version of Barycorr
GNU General Public License v3.0
37 stars 6 forks source link

Handle astropy deprecation warning by importing erfa instead of astropy.__erfa #44

Closed JeremyBuchanan closed 3 years ago

JeremyBuchanan commented 3 years ago

removed a warning:

"AstropyDeprecationWarning: The private astropy._erfa module has been made into its own package, pyerfa, which is a dependency of astropy and can be imported directly using "import erfa" [astropy._erfa]"

That appeared after importing the following:

from barycorrpy import utc_tdb from barycorrpy import get_BC_vel

shbhuk commented 3 years ago

Handle astropy deprecation warning by importing erfa instead of astropy.__erfa.

Thank you for this.