Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch case where no calibration files are found gracefully #117

Open
joshwalawender opened this issue Mar 28, 2018 · 0 comments
Open

Catch case where no calibration files are found gracefully #117

joshwalawender opened this issue Mar 28, 2018 · 0 comments
Assignees

Comments

@joshwalawender
Copy link
Contributor

When running AutoDriver for a data set which does not have any calibration files specified, the DRP fails with this error:

Traceback (most recent call last):
  File "/Users/jwalawender/anaconda/envs/mospy_2018_macos/bin/AutoDriver.py", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/Users/jwalawender/git/MOSFIRE_DRP/scripts/AutoDriver.py", line 465, in <module>
    mydriver.printFlat()
  File "/Users/jwalawender/git/MOSFIRE_DRP/scripts/AutoDriver.py", line 115, in printFlat
    self.addLine(flatLine)

It should check for this and fail gracefully with a more useful message to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant