Skip to content

Commit

Permalink
Merge pull request #24 from sot/erfa
Browse files Browse the repository at this point in the history
Astropy 4.2 compatibility: modified "import erfa" statement
  • Loading branch information
jeanconn authored Feb 8, 2021
2 parents 32d1453 + c6f2320 commit 3ce766b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cxotime/cxotime.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
from astropy.time import Time, TimeCxcSec, TimeYearDayTime, TimeDecimalYear
from astropy.time.utils import day_frac
from astropy.utils import iers
from astropy import _erfa as erfa
# in astropy versions < 4.2, erfa was an astropy private package:
try:
import erfa
except ModuleNotFoundError:
from astropy import _erfa as erfa

# For working in Chandra operations, possibly with no network access, we cannot
# allow auto downloads.
Expand Down

0 comments on commit 3ce766b

Please sign in to comment.