Skip to content

Commit

Permalink
Merge pull request #519 from nespinoza/fix-field-sim-crash
Browse files Browse the repository at this point in the history
Fix ExoCTK crashing at import due to field_simulator.py trace check
  • Loading branch information
bourque authored Sep 27, 2021
2 parents b7e76dc + b98af8f commit 5ff77cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion exoctk/contam_visibility/field_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
from exoctk import utils

EXOCTK_DATA = os.environ.get('EXOCTK_DATA')
TRACES_PATH = os.path.join(os.environ.get('EXOCTK_DATA'), 'exoctk_contam', 'traces')

# If this is not checked, base ExoCTK does not go through. If None,
# users are warned by the import that contam_visibility will not work
# already in utils.py.
if EXOCTK_DATA is not None:

TRACES_PATH = os.path.join(os.environ.get('EXOCTK_DATA'), 'exoctk_contam', 'traces')


def fieldSim(ra, dec, instrument, binComp='', testing=False):
Expand Down

0 comments on commit 5ff77cf

Please sign in to comment.