Ticket #6040 (closed: fixed)
Problems with extracting cuts in the sliceviewer
Reported by: | Nick Draper | Owned by: | Owen Arnold |
---|---|---|---|
Priority: | blocker | Milestone: | Release 2.3 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #6046 | Tester: | Michael Reuter |
Description
May be linux specific
Change History
comment:2 Changed 8 years ago by Owen Arnold
refs #6040. Better Axis selection fix for MDWorkspace.
Changeset: 3607eb54658f920a7405845674e4a3f6f6a2ea12
comment:5 Changed 8 years ago by Owen Arnold
- Status changed from accepted to verify
- Resolution set to fixed
Tester: Look at the modified unit tests to see the fix.
You might also try this.
1) Generate an input md workspace using the script below.
CreateMDWorkspace(Dimensions='2',Extents='-1,1,-1,1',Names='A,B',Units='U,U',OutputWorkspace='WS') FakeMDEventData(InputWorkspace='WS',UniformParams='1000',PeakParams='10000,0,0,0.2',RandomizeSignal='1')
2) Open in the SliceViewer and use the Line tools to draw a line. Drag the line around so that it is almost horizontal to the A dimension. The line viewer preview plot should change to the A axis. Now drag one end of the line so that it has a larger component in Y. Now the preview plot X axis should switch to the B dimension.
3) Rebin the workspace with The A dimension collapsed using the following:
BinMD(InputWorkspace='WS', AxisAligned='0',BasisVector0='X,units,0.497698,0.86735',BasisVector1='Y,units,-0.86735,0.497698',Translation='-0.762712,-0.75',OutputExtents='0,1.65735,-0.1,0.1',OutputBins='100,1',OutputWorkspace='BINNED_WS_line')
4) Repeat (2), but notice that the LineViewer plot will always use the B dimension as it's X-axis because the A dimension is integrated out.
Note that I have also generated #6048, to handle the problem with BinMD. I have also generated #6046 to clean-up some aspects of the fix implemented here.
comment:6 Changed 8 years ago by Michael Reuter
- Status changed from verify to verifying
- Tester set to Michael Reuter
comment:7 Changed 8 years ago by Michael Reuter
- Status changed from verifying to closed
This seems to be working correctly.
comment:8 Changed 8 years ago by Owen Arnold
refs #6040. Axis selection fix for MDWorkspace.
Changeset: f101e53883cdb09377be206dac0d29df1fcec8d6
comment:9 Changed 8 years ago by Owen Arnold
refs #6040. Better Axis selection fix for MDWorkspace.
Changeset: 3607eb54658f920a7405845674e4a3f6f6a2ea12
comment:10 Changed 8 years ago by Owen Arnold
refs #6040. Axis selection fix for MDWorkspace.
Changeset: f101e53883cdb09377be206dac0d29df1fcec8d6
comment:11 Changed 8 years ago by Owen Arnold
refs #6040. Better Axis selection fix for MDWorkspace.
Changeset: 3607eb54658f920a7405845674e4a3f6f6a2ea12
comment:12 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 6886
refs #6040. Axis selection fix for MDWorkspace.