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

DM-26011: Issue better error message if the detector name is not known to the camera #399

Merged
merged 2 commits into from Jul 19, 2020

Conversation

timj
Copy link
Member

@timj timj commented Jul 19, 2020

No description provided.

@timj timj requested a review from ktlim July 19, 2020 00:08
# Give informative error message if the detector name is not known
# rather than a simple KeyError
if chip_name not in name_map:
detectors = [det for det in camera.getNameIter()]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you want to do this for LSSTCam?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did try it out and it was only 3 lines on my terminal. I think I'll list the first 5 detectors as examples or something (I did it first because the name of the camera always say lsstCam in the obs_lsst camera YAML -- something which I later fixed).

@timj timj merged commit ceefcb0 into master Jul 19, 2020
@timj timj deleted the tickets/DM-26011 branch July 19, 2020 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants