Skip to content

DM-56143: Minor fixes for lsst.images metadata work - #563

Merged
TallJimbo merged 3 commits into
mainfrom
tickets/DM-56143
Oct 2, 2026
Merged

TallJimbo merged 3 commits into
mainfrom
tickets/DM-56143

Conversation

@TallJimbo

@TallJimbo TallJimbo commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

This also refactors the special handling of converting reads and adds
guards on parameters those conversions don't support.
if obsInfo.boresight_rotation_coord is not None:
rotType = RotType.UNKNOWN
if obsInfo.boresight_rotation_coord == "sky":
if obsInfo.boresight_rotation_coord.lower() == "sky":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How are we getting upper case values? ObservationInfo always generates lower case.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

VisitInfoTranslator lower cases that when generating the ObservationInfo.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The 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 obs_lsst, though this might still be worth keeping for extra defensiveness.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's definitely not harming anything by forcing lower here.

future_type = VisitImage
needs_exposure_record = True

exposure_record = parameters.get("exposure_record")

Copy link
Copy Markdown
Member

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 visit record which the Formatter already has access to.

Copy link
Copy Markdown
Member Author

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.group would have been particularly useful. Not sure it's worth changing it now, though.

@TallJimbo
TallJimbo merged commit 5a6db65 into main Oct 2, 2026
11 checks passed
@TallJimbo
TallJimbo deleted the tickets/DM-56143 branch October 2, 2026 14:10
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.

2 participants