Sample¶
Sample object to store all information of the sample from the experiment |
|
Initialize the Sample object. |
|
Calculate projections and generate projection angles. |
|
Convert from projX, projY coordinate to Qx,QY coordinate. |
|
Convert from Qx,QY coordinate to projX, projY coordinate. |
|
Format coordinates from QxQy in rotated frame into HKL. |
|
convert from Qx,Qy to HKL. |
|
convert HKL to Qx,Qy. |
|
convert from projections to HKL. |
|
Function to calculate Currat-Axe position in QxQy coordinate system. |
Sample Object and Methods¶
- class Sample.Sample(a=6.283185307179586, b=6.283185307179586, c=6.283185307179586, alpha=90, beta=90, gamma=90, sample=None, name='Unknown', projectionVector1=None, projectionVector2=None, recalculateUB=False)[source]¶
Sample object to store all information of the sample from the experiment
- __init__(a=6.283185307179586, b=6.283185307179586, c=6.283185307179586, alpha=90, beta=90, gamma=90, sample=None, name='Unknown', projectionVector1=None, projectionVector2=None, recalculateUB=False)[source]¶
- CurratAxe(Ei, Ef, Bragg, spurionType='Monochromator', HKL=False, Projection=False)[source]¶
Function to calculate Currat-Axe position in QxQy coordinate system.
- Parameters
Ei (-) – Incoming energy in meV.
Ef (-) – Outgoing energy in meV.
Bragg (-) – Bragg peak in HKL or list of.
Kwargs:
spurionType (str): Either “Monochromator” or “Analyser” for origin of “wrong” energy (default “Monochromator”).
HKL (bool): Whether or not to recalculate to HKL instead of Qx, Qy, Qz (default False).
Projection (Bool): Whether or not to recalculate to Projection vectors instead of Qx, Qy, Qz (default False).
- Returns
List of size (len(Bragg),len(Ei),len(Ef),3), where last axis is Qx, Qy, Qz
- Return type
Position (list)