From a5f9231226f335459d9ac32e90c59b777b91a9f4 Mon Sep 17 00:00:00 2001 From: Seth R Johnson Date: Fri, 29 May 2026 12:28:57 -0400 Subject: [PATCH 1/3] Reapply "Add BIH structure" This reverts commit c16b50af4db3051e7be1896822ebe1c246d69fa7. --- celerpy/model/output.py | 1 + 1 file changed, 1 insertion(+) diff --git a/celerpy/model/output.py b/celerpy/model/output.py index eb4ef0c..5c35115 100644 --- a/celerpy/model/output.py +++ b/celerpy/model/output.py @@ -79,6 +79,7 @@ class BihMetadata(_Model): num_finite_bboxes: list[NonNegativeInt] num_infinite_bboxes: list[NonNegativeInt] depth: list[NonNegativeInt] + structure: Optional[list[dict]] = None # orange/OrangeParamsOutput.hh From 239020b16bd44c273de51c9db0c4296a42d2d971 Mon Sep 17 00:00:00 2001 From: Seth R Johnson Date: Fri, 29 May 2026 12:29:01 -0400 Subject: [PATCH 2/3] Reapply "Update inner -> internal" This reverts commit 44b9aa690e50e3fc6eeb302eaf04e3ea9fe93c6e. --- celerpy/model/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celerpy/model/output.py b/celerpy/model/output.py index 5c35115..70a59d8 100644 --- a/celerpy/model/output.py +++ b/celerpy/model/output.py @@ -67,7 +67,7 @@ class BihSizes(_Model): """Bounding Interval Hierarchy tree sizes.""" bboxes: NonNegativeInt - inner_nodes: NonNegativeInt + internal_nodes: NonNegativeInt leaf_nodes: NonNegativeInt local_volume_ids: NonNegativeInt From 8b54de465ad65cffa72fa04c92e804cc818abce5 Mon Sep 17 00:00:00 2001 From: Seth R Johnson Date: Fri, 29 May 2026 12:33:11 -0400 Subject: [PATCH 3/3] fixup! Reapply "Update inner -> internal" --- test/test_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_model.py b/test/test_model.py index 70b75b8..22d819e 100644 --- a/test/test_model.py +++ b/test/test_model.py @@ -51,8 +51,8 @@ def test_orange_stats_serialization(): def test_bih_load(): result = moutput.BihSizes.model_validate_json( - '{"bboxes":8,"inner_nodes":0,"leaf_nodes":1,"local_volume_ids":7}' + '{"bboxes":8,"internal_nodes":0,"leaf_nodes":1,"local_volume_ids":7}' ) assert result == moutput.BihSizes( - bboxes=8, inner_nodes=0, leaf_nodes=1, local_volume_ids=7 + bboxes=8, internal_nodes=0, leaf_nodes=1, local_volume_ids=7 )