| 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 "Moved detector. About get its new position." |
|---|
| 12 | newDetiPositionY = deti.getPos().Y() #MANTID CRASHES HERE |
|---|
| 13 | print "Got new position. About to print old position, then new position." |
|---|
| 14 | print "Old position", detiPositionY |
|---|
| 15 | print "New position", newDetiPositionY |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|