Ticket #11572 (closed: fixed)

Opened 5 years ago

Last modified 5 years ago

Lower dimensionality cuts for CutMD

Reported by: Owen Arnold Owned by: Owen Arnold
Priority: critical Milestone: Release 3.4
Component: Framework Keywords: vates
Cc: Blocked By:
Blocking: #11627, #11637 Tester: Harry Jeffery

Description (last modified by Owen Arnold) (diff)

This is a request from the inelastic group to run CutMD on the outputs of CutMD.

Important concepts in Mantid and Horace:

  • Histograms are stand-alone. Often having a reference to the original workspace yields incorrect results. Russell describes Histograms as 'dead-ends'. However you can perform further work on a histogram workspace provided that slice orientations are axis aligned, the processing on any dimension leads to less resolution by integrating. So you can in-fact provide limited processing of MDHistogram workspaces provided that you follow these two rules.
  • MDEventWorkspaces may be re-processed in

As a reminder NoPix is the option in CutMD that switches between these two types of Output.

Use case 1

md_4d = Load(Filename='TestSQW_LET.nxs',  LoaderName='LoadMD', LoaderVersion=1)
p = Projection([1,1,0], [-1,1,0], [0,0,1])
histo_2d = CutMD(InputWorkspace='hkl', P1Bin='-0.1,0.01,0.7', P2Bin='-0.7,0.01,0.5', P3Bin='-1,1',  P4Bin='0.1,0.2',Projection=p.createWorkspace('proj'), NoPix=True)

# Should be able to re-cut
histo_1d = CutMD(InputWorkspace=histo_2d, [-0.5,0.5], []) # Empty list means don't touch dimension. They stay the same as the original cut.

Use case 2. Same as above, but with full MDEvents

md_4d = Load(Filename='TestSQW_LET.nxs',  LoaderName='LoadMD', LoaderVersion=1)
p = Projection([1,1,0], [-1,1,0], [0,0,1])
md_2d = CutMD(InputWorkspace='hkl', P1Bin='-0.1,0.01,0.7', P2Bin='-0.7,0.01,0.5', P3Bin='-1,1',  P4Bin='0.1,0.2',Projection=p.createWorkspace('proj'), NoPix=False)

# Should be able to re-cut
md_1d = CutMD(InputWorkspace=md_2d, [-0.5,0.5], []) # Empty list means don't touch dimension. They stay the same as the original cut.

Change History

comment:1 Changed 5 years ago by Owen Arnold

  • Owner set to Owen Arnold
  • Status changed from new to assigned
  • Description modified (diff)

comment:2 Changed 5 years ago by Owen Arnold

  • Description modified (diff)

comment:3 Changed 5 years ago by Owen Arnold

  • Status changed from assigned to inprogress

refs #11572. Use IntegrateMDHistoWorkspace.

Changeset: bb4f2fa88a800bba4f5ebbe0ab5bf38833d48eb9

comment:4 Changed 5 years ago by Owen Arnold

refs #11572. Add usage example.

Changeset: 739cc9257a33d0e2859a5d74c9eef0d6901464b5

comment:5 Changed 5 years ago by Owen Arnold

refs #11572. Use IntegrateMDHistoWorkspace.

Changeset: 77e57ad2aeacd22c4a838ac74def2b0a2d623135

comment:6 Changed 5 years ago by Owen Arnold

refs #11572. Add usage example.

Changeset: 35cd88afc6c37615a4e722ea5bb457678d8b1366

comment:7 Changed 5 years ago by Owen Arnold

refs #11572. Revert debug info.

Changeset: 672df7458a66d430f655d8500095ff5a49a1767b

comment:8 Changed 5 years ago by Owen Arnold

  • Status changed from inprogress to verify
  • Resolution set to fixed

This is being verified as pull request #644.

comment:9 Changed 5 years ago by Owen Arnold

  • Blocking 11627 added

comment:10 Changed 5 years ago by Owen Arnold

  • Description modified (diff)

Use case 3 moved to #11627

comment:11 Changed 5 years ago by Harry Jeffery

  • Status changed from verify to verifying
  • Tester set to Harry Jeffery

comment:12 Changed 5 years ago by Harry Jeffery

  • Status changed from verifying to closed

Merge pull request #644 from mantidproject/11572_cutmd

Lower dimensional cuts for CutMD

Full changeset: 7cce96b07c0a9b57cfee4a3b2e20b26767e99c75

comment:13 Changed 5 years ago by Owen Arnold

  • Blocking 11637 added

comment:14 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 12410

Note: See TracTickets for help on using tickets.