Wppf weights - #986
Open
saransh13 wants to merge 5 commits into
Open
Wppf weights#986saransh13 wants to merge 5 commits into
saransh13 wants to merge 5 commits into
Conversation
…muthal average, return chi^2 as well as goodness of fit, display goodness of fit instead of chi^2 in wppf
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #986 +/- ##
==========================================
- Coverage 75.45% 75.38% -0.07%
==========================================
Files 149 149
Lines 22961 23000 +39
==========================================
+ Hits 17325 17339 +14
- Misses 5636 5661 +25 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
This branch adds statistically informed weighting for WPPF refinements of azimuthally averaged polar data.
N_valid(pv)to count valid pixels contributing to each polar lineout point.N_sampling=Nonearguments toLeBailandRietveld.N_samplingarrays across disconnected valid regions.chi2 = weighted_sum_squares / (N - P)gofF = sqrt(chi2)S (goodness-of-fit)instead of χ².calc_rwp()to return bothchi2andgofF.Affected Workflows
LeBail and Rietveld refinements can now account for the number of detector pixels averaged into each lineout point. Existing callers remain compatible because
N_samplingdefaults toNone, preserving the previous weighting behavior.Callers unpacking
calc_rwp()directly must account for its additional return value.Documentation Changes
The LeBail and Rietveld parameter documentation now includes
N_sampling.Testing
No tests are added on this branch. Recommended coverage includes:
N_sampling.N_samplingregion handling.