Skip to content

Add support for weighting lambda schedule stages#439

Merged
lohedges merged 2 commits intodevelfrom
feature_stage_weights
Apr 24, 2026
Merged

Add support for weighting lambda schedule stages#439
lohedges merged 2 commits intodevelfrom
feature_stage_weights

Conversation

@lohedges
Copy link
Copy Markdown
Contributor

This PR adds support for weighting lambda schedule stages, allowing a user to adjust the lambda range for given stages, e.g.:

# A three-stage schedule where the central morph stage is given twice
# the lambda range of the charge-scaling stages.
s = sr.cas.LambdaSchedule()
s.add_morph_stage("decharge", weight=1)
s.add_morph_stage("morph", weight=2)
s.add_morph_stage("recharge", weight=1)

# Stage boundaries: decharge [0, 0.25), morph [0.25, 0.75), recharge [0.75, 1]
  • I confirm that I have merged the latest version of devel into this branch before issuing this pull request (e.g. by running git pull origin devel): [y]
  • I confirm that I have added a test for any new functionality in this pull request: [y]
  • I confirm that I have added documentation (e.g. a new tutorial page or detailed guide) for any new functionality in this pull request: [y]
  • I confirm that I have added a changelog entry to the changelog (we will add a link to this PR as part of the review): [y]
  • I confirm that I have permission to release this code under the GPL3 license: [y]

@lohedges lohedges added enhancement New feature or request cresset related to work with cresset labels Apr 24, 2026
@lohedges lohedges merged commit 65a2fb5 into devel Apr 24, 2026
4 of 5 checks passed
@lohedges lohedges deleted the feature_stage_weights branch April 24, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cresset related to work with cresset enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant