Skip to content

Make csg levels optional and delete unused struct#21

Merged
sethrj merged 2 commits into
celeritas-project:mainfrom
sethrj:scalar-update
Jun 3, 2026
Merged

Make csg levels optional and delete unused struct#21
sethrj merged 2 commits into
celeritas-project:mainfrom
sethrj:scalar-update

Conversation

@sethrj
Copy link
Copy Markdown
Member

@sethrj sethrj commented Jun 2, 2026

@sethrj sethrj marked this pull request as ready for review June 3, 2026 11:02
Copilot AI review requested due to automatic review settings June 3, 2026 11:02
Copy link
Copy Markdown
Contributor

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.

Pull request overview

This PR updates the ORANGE output Pydantic models to accommodate upstream JSON output changes (making max_csg_levels optional) and removes an unused model, with corresponding test updates to validate the new behavior.

Changes:

  • Make OrangeScalars.max_csg_levels optional with a default of None.
  • Remove the unused BihSizes model.
  • Replace the old BIH-size-specific test with a broader ORANGE output parsing test that exercises the optional field behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
celerpy/model/output.py Makes max_csg_levels optional and deletes the unused BihSizes model.
test/test_model.py Updates tests to validate ORANGE output parsing when max_csg_levels is omitted.

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

Comment thread test/test_model.py
Comment thread celerpy/model/output.py
@sethrj sethrj merged commit 0c35573 into celeritas-project:main Jun 3, 2026
5 checks passed
@sethrj sethrj deleted the scalar-update branch June 3, 2026 11:11
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