Skip to content

DM-54463: Adapt new collection naming in Prompt Processing#375

Merged
hsinfang merged 4 commits intomainfrom
tickets/DM-54463
Apr 8, 2026
Merged

DM-54463: Adapt new collection naming in Prompt Processing#375
hsinfang merged 4 commits intomainfrom
tickets/DM-54463

Conversation

@hsinfang
Copy link
Copy Markdown
Collaborator

This PR can only be merged if

  • RFC-1159 is adopted
  • Changes in Daytime AP are coordinated (in its deployment timeline)

A number of changes at the shared butler repos made the script
out of date:
- old raw data were zipped and moved out of the embargo storage
- storage location of template coadds were moved and collections were changed
Copy link
Copy Markdown
Member

@isullivan isullivan left a 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 additional places in this repo that return the value from get_day_obs, and those should have their type updated from str to int.
E.g.

day_obs : `str`
The day_obs value in YYYY-MM-DD format.
"""
return run_utils.get_day_obs(astropy.time.Time.now())



def get_day_obs(time: astropy.time.Time) -> str:
"""Convert a timestamp into a day-obs string.
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.

The type annotation should be -> int

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks so much for catching the missing converts!

They are now corrected.

Copy link
Copy Markdown
Member

@kfindeisen kfindeisen Apr 9, 2026

Choose a reason for hiding this comment

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

I don't think changing the type to int was necessary or appropriate -- it was always intended as an identifier, and it's essentially forcing you to convert back to string to use it. But I suppose the damage is done...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It wasn't necessary but I thought it would be appropriate. Sorry! I can change it back too.

hsinfang added 3 commits April 1, 2026 15:09
The new LSSTCam/calib collection at the production repo
has gain_correction datasets.
In butler, day_obs is an integer in YYYYMMDD format, versus
day_obs in this repo being a string YYYY-MM-DD.

This change aligns day_obs usage with butler.
@hsinfang
Copy link
Copy Markdown
Collaborator Author

hsinfang commented Apr 8, 2026

Merging this and expecting it to be included in tomorrow's release for deployment tomorrow. Daytime AP team has been informed and DM-54464 is ready for Daytime AP.

@hsinfang hsinfang merged commit b17600b into main Apr 8, 2026
15 checks passed
@hsinfang hsinfang deleted the tickets/DM-54463 branch April 8, 2026 19:34
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.

3 participants