Skip to content
Snippets Groups Projects
Commit 5a4f69e6 authored by Marina Ganeva's avatar Marina Ganeva
Browse files

Added rotation of the detector bank to LoadDNSLegacy

parent 1d17dfde
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,13 @@ class LoadDNSLegacy(PythonAlgorithm):
run = __temporary_workspace__.mutableRun()
run.setStartAndEndTime(DateAndTime(metadata.start_time), DateAndTime(metadata.end_time))
# rotate the detector bank to the proper position
api.RotateInstrumentComponent(__temporary_workspace__, "bank0", X=0,Y=1,Z=0, Angle=metadata.deterota)
# add sample log Ei
Ei = getEnergy(metadata.wavelength)
api.AddSampleLog(__temporary_workspace__, 'Ei', LogText=str(Ei), LogType='Number')
self.setProperty("OutputWorkspace", __temporary_workspace__)
self.log().debug('LoadDNSLegacy: OK')
api.DeleteWorkspace(__temporary_workspace__)
......
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