Skip to content

Small improvements to DiskChopper.from_nexus#707

Merged
nvaytet merged 2 commits into
mainfrom
disk-chopper-fixes
Jun 10, 2026
Merged

Small improvements to DiskChopper.from_nexus#707
nvaytet merged 2 commits into
mainfrom
disk-chopper-fixes

Conversation

@nvaytet

@nvaytet nvaytet commented Jun 4, 2026

Copy link
Copy Markdown
Member

Add some small fixes to parse values in nexus tree for making DiskChopper.
When scalar values are expected, we attempt to squeeze first, as 1d variables with length 1 are also valid.

We also do not assume that the position of the axle is always scalar in the input.

These changes are needed to load the choppers from Odin coda file.

@nvaytet nvaytet requested a review from jl-wynen June 4, 2026 13:32
@nvaytet nvaytet marked this pull request as draft June 4, 2026 13:32

@jl-wynen jl-wynen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Why is this a draft?

@nvaytet

nvaytet commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

Why is this a draft?

I wanted to add tests 😉

@nvaytet nvaytet marked this pull request as ready for review June 10, 2026 12:32
@nvaytet nvaytet requested a review from jl-wynen June 10, 2026 13:03
@nvaytet nvaytet merged commit 1b772f6 into main Jun 10, 2026
5 checks passed
@nvaytet nvaytet deleted the disk-chopper-fixes branch June 10, 2026 13:18
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