You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kif
The linear polarisation rate is not interfaced in python ; it would also be useful to add a parameter for an azimuthal angle, in case the pattern is not recorded in the plane perpendicular to the polarisation plane.
Both parameters (linear polarisation and azimuthal angle) should also be listed as RefinablePar.
A much less dirty approach would be to use the Radiation object (accessible through powder_pattern.GetRadiation()) XML string - using XMLInput on the entire PowderPattern has plenty of side effects (re-creating the powder pattern components), whereas re-importing just the radiation object is almost inconsequential.
In fact, you can input a modified value for just the linear polarisation rate with a stripped-down XML string:
s = "<Radiation> <LinearPolarRate>0.9</LinearPolarRate> </Radiation>"
r.XMLInput(s)
Note however that after changing the linear polarisation rate, you'll need to change another parameter (such as the wavelength) to trigger an actual re-calculation of the powder pattern (because of the cached calculations and the fact that the linear polarisation rate is not a RefinablePar and thus its change does not invalidate stored computed values IIRC)....
@kif
The linear polarisation rate is not interfaced in python ; it would also be useful to add a parameter for an azimuthal angle, in case the pattern is not recorded in the plane perpendicular to the polarisation plane.
Both parameters (linear polarisation and azimuthal angle) should also be listed as RefinablePar.
See https://gsas-ii.readthedocs.io/en/latest/GSASIIpwd.html#GSASIIpwd.Polarization and
J.Appl.Cryst.(2020).53, 1559–1561
The text was updated successfully, but these errors were encountered: