Skip to content

Keep Rietveld phase fractions physical - #983

Merged
psavery merged 1 commit into
masterfrom
wppf-physical-phase-fractions
Oct 2, 2026
Merged

psavery merged 1 commit into
masterfrom
wppf-physical-phase-fractions

Conversation

@psavery

@psavery psavery commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

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 in Rietveld.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.]

@psavery
psavery requested a review from saransh13 October 2, 2026 20:11
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>
@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.80%. Comparing base (234a955) to head (c5dd448).
⚠️ Report is 3 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@saransh13 saransh13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All edge case issue don't show up anymore! LGTM

@psavery
psavery merged commit 229893e into master Oct 2, 2026
10 checks passed
@psavery
psavery deleted the wppf-physical-phase-fractions branch October 2, 2026 21:05
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.

2 participants