Skip to content

Be lenient about diagnostic output validation#20

Merged
sethrj merged 2 commits into
celeritas-project:mainfrom
sethrj:lenient-diagnostic-out
Jun 1, 2026
Merged

Be lenient about diagnostic output validation#20
sethrj merged 2 commits into
celeritas-project:mainfrom
sethrj:lenient-diagnostic-out

Conversation

@sethrj
Copy link
Copy Markdown
Member

@sethrj sethrj commented Jun 1, 2026

No description provided.

@sethrj sethrj marked this pull request as ready for review June 1, 2026 15:25
Copilot AI review requested due to automatic review settings June 1, 2026 15:25
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 loosens the schema for ORANGE geometry “size diagnostics” output by replacing the strict OrangeSizes Pydantic model with a generic dictionary on OrangeParamsOutput, allowing the loader to accept evolving/variable size payloads.

Changes:

  • Removed the structured UniverseIndexerSizes and OrangeSizes models.
  • Updated OrangeParamsOutput.sizes to accept a dict rather than a strict model.

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

Comment thread celerpy/model/output.py
Comment thread celerpy/model/output.py Outdated
@sethrj sethrj changed the title Just load size diagnostics as a dict, not a strict output Be lenient about diagnostic output Jun 1, 2026
@sethrj sethrj changed the title Be lenient about diagnostic output Be lenient about diagnostic output validation Jun 1, 2026
@sethrj sethrj enabled auto-merge (squash) June 1, 2026 16:20
@sethrj sethrj merged commit 382af17 into celeritas-project:main Jun 1, 2026
5 checks passed
@sethrj sethrj deleted the lenient-diagnostic-out branch June 1, 2026 17:44
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