vallis / libstempo

libstempo — a Python wrapper for tempo2
MIT License
29 stars 34 forks source link

Get rid of astropy.erfa deprecation warning #48

Closed mattpitkin closed 1 year ago

mattpitkin commented 2 years ago

If using astropy v4.2 or higher you get a deprecation warning about importing the astropy._erfa library as erfa is now a separate package (pyerfa), which is a requirement of astropy.

This PR bumps the required version of astropy for libstempo to be at least 4.2 and also imports erfa directly, thus getting rid of the deprecation warning.

mattpitkin commented 1 year ago

@vallis Could you get this merged in? Or is there a reason for not wanting the astropy version requirement to be upgraded?