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 """ _printMessage("SetDetectorOffsets(" + str(bank) + ', ' + str(x) + ','+str(y) + ',' + str(z) + ',' + str(rot) + ',' + str(radius) + ',' + str(side) + ')') detector = ReductionSingleton().instrument.getDetector(bank) detector.x_corr = x detector.y_corr = y detector.z_corr = z detector.rot_corr = rot detector.radius_corr = radius detector.side_corr = side