Introduce per-phase sample-detector displacement with flat detector#73
Open
clemisch wants to merge 3 commits into
Open
Introduce per-phase sample-detector displacement with flat detector#73clemisch wants to merge 3 commits into
clemisch wants to merge 3 commits into
Conversation
Before, PowderPattern calculated delta from its displacement, and phase calculated delta from per-phase displacement, then the deltas were added. Physically this doesn't make sense. Displacements should be added and delta computed from combined (physical) displacement. This is implemented in this commit.
after last commit the function CalcFlatDetDispShift had only one call site so we might as well inline it
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.
Introduces model for sample-detector displacement, assuming transmission geometry and a flat detector as presented in Hulbert2023.
Unlike other displacements (
m2ThetaDisplacement,m2ThetaTransparency) which act only on the whole PowderPattern (i.e. all phases), this new displacement can act also per-phase. In eachPowderPatternDiffractionit combines per-sample and per-phase displacement and computes resulting 2θ shift from it.m2ThetaFlatDetDispRatiois the sample displacement, andm2ThetaPhaseFlatDetDispRatiois the per-phase displacement.GSAS-II has something similar called
LayerDisphere which allows per-phase offsets. Afaik it's currently undocumented.