Skip to content

Align binary outcome dictionaries by population key - #340

Merged
uriahf merged 2 commits into
mainfrom
fix/binary-input-alignment
Aug 20, 2026
Merged

Align binary outcome dictionaries by population key#340
uriahf merged 2 commits into
mainfrom
fix/binary-input-alignment

Conversation

@uriahf

@uriahf uriahf commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • validate binary probs / reals alignment before processing
  • align outcome dictionaries by population key rather than dictionary insertion order
  • unwrap a one-population reals dictionary to its corresponding array
  • add regression tests for reversed dictionary order, single-population dict input, key mismatch, and length mismatch

Audit classification

Correctness bug: binary multi-population inputs could silently pair outcomes with the wrong population when reals used the same keys in a different insertion order. Single-population dictionary input was also inconsistent with the declared API.

The change is confined to binary input normalization/validation. No performance formulas, cutoff semantics, stratification calculations, plotting code, or dependencies are changed.

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-20 11:43 UTC

@uriahf
uriahf marked this pull request as ready for review August 20, 2026 11:43
@uriahf
uriahf merged commit 672b027 into main Aug 20, 2026
4 checks passed
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