Repository navigation
Fpack the e45; fix ORIGNAME header value - #508
Merged
Merged
Conversation
timbeccue
marked this pull request as ready for review
November 3, 2026 17:57
cmccully
reviewed
Nov 17, 2026
cmccully
reviewed
Nov 17, 2026
cmccully
approved these changes
Nov 17, 2026
cmccully
left a comment
Collaborator
There was a problem hiding this comment.
Looks ok to me. Some minor comments to address.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the smartstack compression and metadata changes.
No open issues 🎉
What changed in this PR
This PR enables compression for e45 smartstack products and corrects their ORIGNAME metadata so the archive links related frames correctly without listing phantom n09 frames.
Changes:
- Enable fpack compression for site smartstack output.
- Set e45
ORIGNAMEto its own basename and centralize FITS suffix removal. - Extend unit and end-to-end tests to cover compressed output and corrected metadata.
| File | Description |
|---|---|
docker-compose-site.yml |
Enable fpack for smartstack output. |
banzai/utils/file_utils.py |
Add a shared FITS basename helper and reuse it for JPEG filenames. |
banzai/tests/test_smartstack_products.py |
Check compression, reopened data, and e45 ORIGNAME. |
banzai/tests/test_file_utils.py |
Test rejection of unsupported filename extensions. |
banzai/tests/site_e2e/test_site_e2e.py |
Verify compressed e45 products and corrected metadata. |
banzai/tests/site_e2e/README.md |
Document compressed smartstack output in test coverage. |
banzai/smartstack_products.py |
Correct ORIGNAME and reuse the basename helper for preview metadata. |
Review effort: Balanced
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A few small changes wrapped into this PR.
First, fpack the e45 smartstack fits before sending it to the archive. Saves bandwidth, and matches how other LCO data is handled.
Second, fix the ORIGNAME header on the e45. Previously it was set to the basename of the first stackframe (n09 frame), and now it is set to the basename of the e45. This removes a phantom related frame from being listed in the archive (phantom because we don't ship n09 frames), and correctly associates the e45 as a related frame of the e91.
Part of this included a basename helper function plus refactoring related code.