Skip to content

Commit cf1d673

Browse files
committed
set crds env vars in create_catalog
1 parent 92d8753 commit cf1d673

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

mirage/catalogs/create_catalog.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
ExtendedCatalog, MovingPointSourceCatalog, MovingExtendedCatalog, \
2929
MovingSersicCatalog
3030
from mirage.logging import logging_functions
31+
from mirage.reference_files import crds_tools
3132
from mirage.utils.constants import FGS_FILTERS, NIRCAM_FILTERS, NIRCAM_PUPIL_WHEEL_FILTERS, \
3233
NIRISS_FILTERS, NIRISS_PUPIL_WHEEL_FILTERS, NIRCAM_2_FILTER_CROSSES, NIRCAM_WL8_CROSSING_FILTERS, \
3334
NIRCAM_CLEAR_CROSSING_FILTERS, NIRCAM_GO_PW_FILTER_PAIRINGS, LOG_CONFIG_FILENAME, STANDARD_LOGFILE_NAME
@@ -39,6 +40,10 @@
3940
logging_functions.create_logger(log_config_file, STANDARD_LOGFILE_NAME)
4041

4142

43+
# Check that CRDS-related environment variables are set correctly
44+
crds_datadir = crds_tools.env_variables()
45+
46+
4247
def create_basic_exposure_list(xml_file, pointing_file):
4348
"""Create an exposure table from an APT (xml and pointing) file.
4449
This is a shortened version of what is done in apt_inputs, in order to

0 commit comments

Comments
 (0)