Repository navigation
DM-56143: Minor fixes for lsst.images metadata work #563
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -203,7 +203,7 @@ def observationInfo2visitInfo( | |
|
|
||
| if obsInfo.boresight_rotation_coord is not None: | ||
| rotType = RotType.UNKNOWN | ||
| if obsInfo.boresight_rotation_coord == "sky": | ||
| if obsInfo.boresight_rotation_coord.lower() == "sky": | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How are we getting upper case values?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. VisitInfoTranslator lower cases that when generating the ObservationInfo.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the LSSTCam translator is the outlier that doesn't do that lowercasing. So this is a case where I thought it mattered before (but it didn't, because that translator wasn't getting loaded in the converter task), and it doesn't matter now (because we're explicitly avoiding the per-instrument translators now). And the real fix probably belongs in
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's definitely not harming anything by forcing lower here. |
||
| rotType = RotType.SKY | ||
| argDict["rotType"] = rotType | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a shame we don't put more metadata in the
visitrecord which the Formatter already has access to.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few places in pipelines (especially AP) where a
visit.groupwould have been particularly useful. Not sure it's worth changing it now, though.