Skip to content

refactor(aggregation): Rename simplex projection helper - #814

Merged
ValerianRey merged 2 commits into
mainfrom
refactor/simplex-projection-rename
Oct 7, 2026
Merged

ValerianRey merged 2 commits into
mainfrom
refactor/simplex-projection-rename

Conversation

@ValerianRey

Copy link
Copy Markdown
Member

_projection2simplex (in the private aggregation/_utils package) is imported by MoDoWeighting, SDMGradWeighting and the tests, while its sibling helper pref_vector_to_weighting has no leading underscore and spells out "to". It's renamed to project_onto_simplex (and its test to test_project_onto_simplex_known_values). No other code changes.

The simplex, MoDo and SDMGrad tests pass.

🤖 Generated with Claude Code

`_projection2simplex` is imported by MoDo, SDMGrad and the tests, and its
sibling helper in `aggregation/_utils` (`pref_vector_to_weighting`) has no
leading underscore and spells out "to".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ValerianRey ValerianRey added package: aggregation cc: refactor Conventional commit type for any refactoring, not user-facing, and not typing or perf improvements labels Oct 7, 2026
@github-actions github-actions Bot changed the title Rename simplex projection helper refactor(aggregation): Rename simplex projection helper Oct 7, 2026
@ValerianRey
ValerianRey marked this pull request as ready for review October 7, 2026 16:10
@ValerianRey
ValerianRey enabled auto-merge (squash) October 7, 2026 16:10
@ValerianRey
ValerianRey merged commit 2364055 into main Oct 7, 2026
18 checks passed
@ValerianRey
ValerianRey deleted the refactor/simplex-projection-rename branch October 7, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cc: refactor Conventional commit type for any refactoring, not user-facing, and not typing or perf improvements package: aggregation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant