Skip to content

Refactor RotatedProjWriter#482

Open
mabruzzo wants to merge 13 commits intocholla-hydro:devfrom
mabruzzo:refactor-rotated-proj
Open

Refactor RotatedProjWriter#482
mabruzzo wants to merge 13 commits intocholla-hydro:devfrom
mabruzzo:refactor-rotated-proj

Conversation

@mabruzzo
Copy link
Collaborator

To be reviewed after #481 is merged


This PR refactors a bunch of logic so all the projection-related logic for RotatedProjWriter is within RotatedProjWriter.cpp.

As part of this PR, I factored out the common logic for writing the common header attributes present in the rotated projection outputs and the headers of projections, slices, and full field dumps. I have taken a lot of care to ensure that I don't introduce new headers.

Would it be ok if I add all the header attributes from projections, slices, and full field dumps to rotated projection dumps? For context, the attributes are the same for those 3 output types. (From a code perspective, it simplifies logic. Plus, I can't think of a compelling reason why we would want Rotated Projections to be different)


I did a lot of careful testing to make sure I didn't break anything (which took a surprising amount of time)

@mabruzzo mabruzzo changed the title Refactor rotated proj Refactor RotatedProjWriter Mar 17, 2026
@evaneschneider
Copy link
Collaborator

These changes look good, but io needs a refactor since I merged the slice PR in first.

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