Skip to content

HDU lookup: use primary_hdu instead of 'SCI' (fix for banzai-floyds) - #496

Merged
timbeccue merged 1 commit into
mainfrom
fix/floyds-compatibility
Sep 29, 2026
Merged

timbeccue merged 1 commit into
mainfrom
fix/floyds-compatibility

Conversation

@timbeccue

Copy link
Copy Markdown
Contributor

In 1.38.0, #469 changed init_master_frame and CalibrationStacker to look up an HDU named 'SCI' instead of using the primary HDU. This caused issues in Floyds because some of the tests build fits images that don't have an HDU named 'SCI' LCOGT/banzai-floyds#106.

In banzai and banzai-floyds, using primary_hdu instead of 'SCI' seems to work without issue, and that fixes the problem in floyds. I tested this against banzai-floyds and banzai-nres pointed at this branch, and the failing unit tests related to the primary HDU now pass.

This PR also bumps the version to 1.39.1 so it can be used with banzai-floyds.

@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.

Previously, we had hardcoded the 'SCI' extension in some places and it should instead use the frame method primary_hdu (which is more dynamic) to select the data we want to work with.

@timbeccue
timbeccue merged commit 83940cc into main Sep 29, 2026
10 of 11 checks passed
@jchate6
jchate6 deleted the fix/floyds-compatibility branch September 29, 2026 20:58
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