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
SetDetectorOffsets does not appear to be working properly
Hi Anders,
So below is what you sent me before Christmas. Attached is the Python routine I showed you this morning.
As you can see I’ve commented out the two lines re-loading the data file and calling MoveInstrumentComponent. But the output seems to show that no offsets have been applied to the detector positions.
So either SetDetectorOffsets is not doing what it should, or some way of ‘forcing’ the application of the offset specified by SetDetectorOffsets is necessary?
Thanks,
Steve
From: Markvardsen, Anders (STFC,RAL,ISIS)
Sent: 18 December 2012 12:39
To: King, Stephen (STFC,RAL,ISIS)
Subject: RE: det position corrections
Hi Steve,
The python method in ISISCommandInterface.py which exposes this is
def SetDetectorOffsets(bank, x, y, z, rot, radius, side):
"""
Adjust detector position away from position defined in IDF. On SANS2D the detector
banks can be moved around. This method allows fine adjustments of detector bank position
in the same way as the DET/CORR userfile command works. Hence please see http://www.mantidproject.org/SANS_User_File_Commands#DET for details.
Note, for now, this command will only have an effect on runs loaded
after this command have been executed (because it is when runs are loaded
that components are moved away from the positions set in the IDF)
@param bank: Must be either 'front' or 'rear' (not case sensitive)
@param x: shift in mm
@param y: shift in mm
@param z: shift in mm
@param rot: shift in degrees
@param radius: shift in mm
@param side: shift in mm
Hope this helps,
Anders
From: King, Stephen (STFC,RAL,ISIS)
Sent: 18 December 2012 12:03
To: Markvardsen, Anders (STFC,RAL,ISIS)
Subject: det position corrections
Hi Anders,
What Python algorithm do I need to call from a script to apply
DET/CORR FRONT RADIUS 48.0
DET/CORR FRONT SIDE 0.0
corrections to SANS2D data I’ve just read in.
For the other offset corrections like
DET/CORR FRONT Z 47.0
MoveInstrumentComponent did the trick but that seems to be specific to X, Y & Z...
Thanks,
Steve
The text was updated successfully, but these errors were encountered:
SetDetectorOffsets does not appear to be working properly
Hi Anders,
So below is what you sent me before Christmas. Attached is the Python routine I showed you this morning.
As you can see I’ve commented out the two lines re-loading the data file and calling MoveInstrumentComponent. But the output seems to show that no offsets have been applied to the detector positions.
So either SetDetectorOffsets is not doing what it should, or some way of ‘forcing’ the application of the offset specified by SetDetectorOffsets is necessary?
Thanks,
Steve
From: Markvardsen, Anders (STFC,RAL,ISIS)
Sent: 18 December 2012 12:39
To: King, Stephen (STFC,RAL,ISIS)
Subject: RE: det position corrections
Hi Steve,
The python method in ISISCommandInterface.py which exposes this is
def SetDetectorOffsets(bank, x, y, z, rot, radius, side):
"""
Adjust detector position away from position defined in IDF. On SANS2D the detector
banks can be moved around. This method allows fine adjustments of detector bank position
in the same way as the DET/CORR userfile command works. Hence please see
http://www.mantidproject.org/SANS_User_File_Commands#DET for details.
Hope this helps,
Anders
From: King, Stephen (STFC,RAL,ISIS)
Sent: 18 December 2012 12:03
To: Markvardsen, Anders (STFC,RAL,ISIS)
Subject: det position corrections
Hi Anders,
What Python algorithm do I need to call from a script to apply
DET/CORR FRONT RADIUS 48.0
DET/CORR FRONT SIDE 0.0
corrections to SANS2D data I’ve just read in.
For the other offset corrections like
DET/CORR FRONT Z 47.0
MoveInstrumentComponent did the trick but that seems to be specific to X, Y & Z...
Thanks,
Steve
The text was updated successfully, but these errors were encountered: