kevin218 / Eureka

Eureka! is a data reduction and analysis pipeline intended for time-series observations with JWST.
https://eurekadocs.readthedocs.io/
MIT License
56 stars 44 forks source link

[Enhancement]: Allow users to specify CRDS context #572

Closed taylorbell57 closed 7 months ago

taylorbell57 commented 8 months ago

Instrument

Other (any stage)

What is your suggestion?

When running Stages 1-3, the most up-to-date CRDS context is always used which is often a nice feature, but sometimes I will want to re-run Stages 1-6 with a few different settings to see their impact, and the CRDS context number will end up updating between different runs that were done days apart. This causes a real headache and also makes it hard to compare between different pipelines since they may have been run at different times and therefore have different CRDS context numbers. We should allow users to specify their preferred CRDS context number (but by default use the most up-to-date context if not explicitly specified).

Error traceback output

No response

What operating system are you using?

No response

What version of Python are you running?

No response

What Python packages do you have installed?

No response

Code of Conduct

taylorbell57 commented 8 months ago

This can be done with os.environ['CRDS_CONTEXT'] = 'jwst_1089.pmap' which we could add to the run_eureka.py file. Thanks to Sarah Kendrew for telling me this! There's also more info at https://jwst-pipeline.readthedocs.io/en/latest/jwst/user_documentation/reference_files_crds.html# which Rachel Plesha pointed out to me