Skip to content

feat: add covfie fieldmaps#30

Open
wdconinc wants to merge 3 commits into
mainfrom
covfie
Open

feat: add covfie fieldmaps#30
wdconinc wants to merge 3 commits into
mainfrom
covfie

Conversation

@wdconinc
Copy link
Copy Markdown
Contributor

@wdconinc wdconinc commented Feb 24, 2026

Briefly, what does this PR introduce?

This PR adds converted covfie fieldmap files. These files on uniform grids are self-describing and therefore a binary format is fine. Due to short fixed point field representation in the ascii files (6 bytes per value), and storage in float (4 bytes per value), these are not as much compressed as one would expect, I guess. A gzipped ascii file would be smaller, but file size and/or compression is not the point here.

Copilot AI review requested due to automatic review settings February 24, 2026 20:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add clamp<strided> layer to field binary format so boundaries are clamped
during linear interpolation, preventing out-of-bounds reads that caused NaN
field values and the Geant4 GeomField0003 fatal exception.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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