Skip to content

Fpack the e45; fix ORIGNAME header value - #508

Merged
timbeccue merged 2 commits into
mainfrom
feature/fpack-e45-smartstack
Nov 17, 2026
Merged

timbeccue merged 2 commits into
mainfrom
feature/fpack-e45-smartstack

Conversation

@timbeccue

@timbeccue timbeccue commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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.

@timbeccue timbeccue changed the title Fpack the e45 smartstack and link e91 to e45 via ORIGNAME Fpack the e45; fix ORIGNAME header value Oct 28, 2026
@timbeccue
timbeccue marked this pull request as ready for review November 3, 2026 17:57
@timbeccue
timbeccue requested a review from cmccully November 3, 2026 17:57
Comment thread banzai/utils/file_utils.py Resolved
Comment thread banzai/smartstack_products.py Resolved

@cmccully cmccully left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks ok to me. Some minor comments to address.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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 ORIGNAME to 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

@timbeccue timbeccue mentioned this pull request Nov 17, 2026
@timbeccue
timbeccue merged commit 086aeb5 into main Nov 17, 2026
10 checks passed
@timbeccue
timbeccue deleted the feature/fpack-e45-smartstack branch November 17, 2026 21:47
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