1 | rawMapWS = Load(r'\\isis\inst$\NDXMERLIN\Instrument\data\cycle_11_5\MER12024.raw') |
---|
2 | |
---|
3 | deti = rawMapWS.getDetector( 204801 ) |
---|
4 | detiID = deti.getID() |
---|
5 | detiPositionX = deti.getPos().X() |
---|
6 | detiPositionY = deti.getPos().Y() |
---|
7 | detiPositionZ = deti.getPos().Z() |
---|
8 | yNew = -0.05 |
---|
9 | print "About to move detector from", detiPositionY |
---|
10 | MoveInstrumentComponent( rawMapWS, DetectorID=detiID, Y=yNew ) |
---|
11 | print "Get moved detector (again) " |
---|
12 | deti = rawMapWS.getDetector( 204801 ) |
---|
13 | print "Moved detector. About get its new position." |
---|
14 | newDetiPositionY = deti.getPos().Y() |
---|
15 | print "Got new position. About to print old position, then new position." |
---|
16 | print "Old position", detiPositionY |
---|
17 | print "New position", newDetiPositionY |
---|
18 | |
---|
19 | |
---|
20 | |
---|