goodman_pipeline icon indicating copy to clipboard operation
goodman_pipeline copied to clipboard

Improve exit message for exception

Open simontorres opened this issue 3 years ago • 0 comments

If the GRATING keyword does not contain actual grating information the pipeline will crash.

Improve this exit

File "/home/natacha/anaconda3/envs/goodman_pipeline/lib/python3.8/site-packages/goodman_pipeline-1.3.4-py3.8.egg/goodman_pipeline/core/core.py", line 1470, in get_central_wavelength
    grating_frequency = float(grating) / u.mm
ValueError: could not convert string to float: ''

simontorres avatar May 18 '21 00:05 simontorres