Skip to content

DM-51822: PP-dev upload_from_repo test with LSSTCam #337

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

hsinfang
Copy link
Collaborator

No description provided.

@hsinfang hsinfang added the ignore-for-release Does not affect the containers (changes only to docs, the uploaders, and/or unit tests) label Jul 26, 2025
Headers of summit LSST instruments have extra comments that are not
key-value pairs and hence not JSON serializable. Ignore those.

Only LSSTCam-imSim data worked before this fix. For other instruments,
we only ran tests with json sidecars available, so we did not notice
the issue.
In general, no json files are expected in an archive butler repo.
Stop looking for it, and just generate the sidecar based on the fits.

This simplifies the upload.
Raws are copied to a temp dir before uploading to the central
repo because their metadata need to be modified.
The raw copying was done as part of the parallel upload after
the exposure.

This commit moves it out to a separate function before the
exposure, and provides options for it to go serially or
parallelly. It introduces a new waiting, as metadata modification
and uploading to the central repo only makes sense after the
corresponding raw is copied to the temp_dir.

This is a prep step before supporting using zipped raws where
all detector images of an exposure are stored in one zip file.
Before the zip format was introduced, each detector always had
its own fits file.
LSSTCam raws are archived as zip files, with one zip for
each exposure containing all detector images.

/repo/main has LSSTCam raws in zip format, versus
/repo/embargo has LSSTCam raws in individual fits format
for each detector image.
/repo/embargo_old has been deprecated unintentionally. But using
/repo/main works and is actually more proper.
Some input FITS files' headers fail to meet FITS standard according
to astropy. These violations can cause failures in downstream fits
file handling. This commit allows astropy to correct the fixable issues.
@hsinfang hsinfang marked this pull request as ready for review August 12, 2025 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-for-release Does not affect the containers (changes only to docs, the uploaders, and/or unit tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant