Repository navigation
Keep Rietveld phase fractions physical - #983
Merged
Merged
Conversation
lmfit clamps the remainder phase fraction to its bounds, which let fits run over budget and shrink "fixed" fractions. Add hexrd.core.fitting.stick_breaking, which keeps any group of fractions non-negative and summing to one, and use it in Rietveld.Refine. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
psavery
force-pushed
the
wppf-physical-phase-fractions
branch
from
October 2, 2026 20:19
68f9ea8 to
c5dd448
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #983 +/- ##
==========================================
+ Coverage 74.72% 74.80% +0.07%
==========================================
Files 148 149 +1
Lines 22882 22942 +60
==========================================
+ Hits 17098 17161 +63
+ Misses 5784 5781 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
saransh13
approved these changes
Oct 2, 2026
saransh13
left a comment
Member
There was a problem hiding this comment.
All edge case issue don't show up anymore! LGTM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
lmfit clamps the remainder phase fraction to its bounds, which let fits run over budget and shrink "fixed" fractions. Add
hexrd.core.fitting.stick_breaking, which keeps any group of fractions non-negative and summing to one, and use it inRietveld.Refine.Affected Workflows
Powder - WPPF only
Documentation Changes
[Enumerate the places where documentation needs to change. If the documentation lives in this repo, it should be changed in this PR.]