Skip to content

Add BIH metadata to output model#14

Merged
sethrj merged 1 commit intoceleritas-project:mainfrom
sethrj:bih-md
Feb 9, 2026
Merged

Add BIH metadata to output model#14
sethrj merged 1 commit intoceleritas-project:mainfrom
sethrj:bih-md

Conversation

@sethrj
Copy link
Member

@sethrj sethrj commented Feb 9, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 9, 2026 12:03
Copy link
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

Adds support in celerpy’s Pydantic output schema for newly emitted ORANGE BIH (Bounding Interval Hierarchy) metadata.

Changes:

  • Introduced a new BihMetadata output model to represent BIH characteristics.
  • Extended OrangeParamsOutput to include a new bih_metadata field.

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

Comment on lines +76 to +81
class BihMetadata(_Model):
"""Bounding Interval Hierarchy characteristics."""

num_finite_bboxes: list[NonNegativeInt]
num_infinite_bboxes: list[NonNegativeInt]
depth: list[NonNegativeInt]
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

New BihMetadata and the new OrangeParamsOutput.bih_metadata field aren’t covered by the existing model-parsing tests. Please add a unit test that validates JSON parsing for BihMetadata (and ideally OrangeParamsOutput including the bih_metadata key) to prevent schema regressions.

Copilot uses AI. Check for mistakes.
_label: Literal["orange"]
scalars: OrangeScalars
sizes: OrangeSizes
bih_metadata: BihMetadata
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

OrangeParamsOutput docstring says it contains only “sizes and scalars”, but this PR adds bih_metadata. Update the docstring to reflect the additional output content so it stays accurate for API consumers.

Copilot uses AI. Check for mistakes.
@sethrj sethrj merged commit 2e51ceb into celeritas-project:main Feb 9, 2026
13 of 14 checks passed
@sethrj sethrj deleted the bih-md branch February 9, 2026 12:39
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.

1 participant