Skip to content
Snippets Groups Projects
Commit 386f9653 authored by WHITFIELDRE email's avatar WHITFIELDRE email
Browse files

Add s1 offset option to ConvertWANDSCDtoQ

They want the ability to simple change the s1 when viewing particular datasets in Q space.
parent 007586b9
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ class ConvertWANDSCDtoQ(PythonAlgorithm):
direction=Direction.Input),
"Workspace containing the UB matrix to use")
self.declareProperty("Wavelength", 1.488, validator=FloatBoundedValidator(0.0), doc="Wavelength to set the workspace")
self.declareProperty("S1Offset", 0., doc="Offset to apply (in degrees) to the s1 of the input workspace")
self.declareProperty('NormaliseBy', 'Monitor', StringListValidator(['None', 'Time', 'Monitor']),
"Normalise to monitor, time or None.")
self.declareProperty('Frame', 'Q_sample', StringListValidator(['Q_sample', 'HKL']),
......@@ -153,7 +154,7 @@ class ConvertWANDSCDtoQ(PythonAlgorithm):
progress = Progress(self, 0.0, 1.0, number_of_runs+4)
# Get rotation array
s1 = np.deg2rad(inWS.getExperimentInfo(0).run().getProperty('s1').value)
s1 = np.deg2rad(inWS.getExperimentInfo(0).run().getProperty('s1').value) + np.deg2rad(self.getProperty("S1Offset").value)
normaliseBy = self.getProperty("NormaliseBy").value
if normaliseBy == "Monitor":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment