Skip to content

Commit

Permalink
TEMP: soft apexpy install
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Jul 7, 2021
1 parent 44b6507 commit 73199e6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pysatMissions/methods/magcoord.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"""

import aacgmv2
import apexpy
try:
import apexpy
except ImportError:
# Problem with install, turn this function off
pass
import sys
import warnings


def add_aacgm_coordinates(inst, glat_label='glat', glong_label='glong',
Expand Down Expand Up @@ -106,6 +112,10 @@ def add_quasi_dipole_coordinates(inst, glat_label='glat', glong_label='glong',
"""

if 'apexpy' not in sys.modules:
warnings.warn("Apexpy not installed. Do not pass go.", stacklevel=2)
return

ap = apexpy.Apex(date=inst.date)

qd_lat = []
Expand Down

0 comments on commit 73199e6

Please sign in to comment.