Skip to content

refactor(aggregation): Drop redundant projector_or_default call - #805

Merged
ValerianRey merged 4 commits into
mainfrom
refactor/projector-default-once
Oct 7, 2026
Merged

ValerianRey merged 4 commits into
mainfrom
refactor/projector-default-once

Conversation

@ValerianRey

Copy link
Copy Markdown
Member

UPGradWeighting.__init__ and DualProjWeighting.__init__ did self.projector = projector_or_default(projector), but the projector setter already applies projector_or_default. They now just do self.projector = projector.

For UPGrad, UPGradWeighting, DualProj and DualProjWeighting, the default is still a QuadprogProjector and a custom projector is kept as is. The UPGrad and DualProj tests pass.

🤖 Generated with Claude Code

The `projector` setters of UPGradWeighting and DualProjWeighting already apply
`projector_or_default`, so `__init__` does not need to apply it too.

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 Drop redundant projector_or_default call refactor(aggregation): Drop redundant projector_or_default call Oct 7, 2026
@ValerianRey
ValerianRey marked this pull request as ready for review October 7, 2026 15:46
@ValerianRey
ValerianRey enabled auto-merge (squash) October 7, 2026 15:47
@ValerianRey
ValerianRey merged commit 25a26a4 into main Oct 7, 2026
18 checks passed
@ValerianRey
ValerianRey deleted the refactor/projector-default-once branch October 7, 2026 18:36
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