Ticket #4387 (closed: fixed)
Expose goniometer via Python API
Reported by: | Owen Arnold | Owned by: | Owen Arnold |
---|---|---|---|
Priority: | major | Milestone: | Release 2.0 |
Component: | VATES | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Andrei Savici |
Description
Currently expose OrientedLattice, but not Goniometer from run object in Python API. No obvious reason why we can't do this. Would be helpful for MDWorkspace Creation related tickets.
Change History
comment:4 Changed 9 years ago by Owen Arnold
- Status changed from accepted to verify
- Resolution set to fixed
Tester: Python unit tests demonstrate new working features. These will also provide a good starting point for any manual testing performed.
comment:5 Changed 9 years ago by Owen Arnold
Tester: Here is the python unit test code https://github.com/mantidproject/mantid/blob/master/Code/Mantid/Framework/PythonAPI/test/GoniometerTest.py
comment:6 Changed 9 years ago by Andrei Savici
- Status changed from verify to verifying
- Tester set to Andrei Savici
comment:7 Changed 9 years ago by Andrei Savici
- Status changed from verifying to closed
I can access the goniometer from a workspace. I cannot set the angle to the goniometer on the workspace, only to my copy. This should probably be stated explicitly.
w.getRun().getGoniometer().setRotationAngle("omega",5) print w.getRun().getGoniometer().axesInfo() Name Direction Sense Angle omega [0,1,0] CCW 0 chi [0,0,1] CCW 135 phi [0,1,0] CCW 0.00769
refs #4387. First implementation. Untested via unit tests yet.