Ticket #4001 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

ExtractSingleSpectrum should be event aware

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: critical Milestone: Release 2.0
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Russell Taylor

Description

Pascal found a difference when running

LoadEventNexus(Filename=r'/archive/ndxwish/Instrument/data/cycle_11_3/WISH00019301.nxs',OutputWorkspace='19301full',LoadMonitors='1',MonitorsAsEvents='1')

Rebin(InputWorkspace='19301full_monitors',OutputWorkspace='19301-full_monitors_rebin',Params='5000,-0.00063,105000')
ExtractSingleSpectrum(InputWorkspace='19301-full_monitors_rebin',OutputWorkspace='19301-full_monitors_rebin_extract',WorkspaceIndex='3')

ExtractSingleSpectrum(InputWorkspace='19301full_monitors',OutputWorkspace='19301-full_extract',WorkspaceIndex='3')
Rebin(InputWorkspace='19301-full_extract',OutputWorkspace='19301-full_extract_rebin',Params='5000,-0.00063,105000')

The reason being that ExtractSingleSpectrum is not event aware and the workspace is converted to a Workspace2D and then rebinned.

Pascal needs this for the WISH scripts. Extract does not currently use CropWorkspace which I think it should.

Change History

comment:1 Changed 9 years ago by Martyn Gigg

  • Status changed from new to closed
  • Resolution set to fixed

Fixes #4001. Make ExtractSingleSpectrum event aware by making it use CropWorkspace.

Changeset: 794dd34426024f0a6112c338b45a2e8f4dbfacf7

comment:2 Changed 9 years ago by Martyn Gigg

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:3 Changed 9 years ago by Martyn Gigg

  • Status changed from reopened to accepted

comment:4 Changed 9 years ago by Martyn Gigg

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

comment:5 Changed 9 years ago by Russell Taylor

  • Status changed from verify to verifying
  • Tester set to Russell Taylor

comment:6 Changed 9 years ago by Russell Taylor

  • Status changed from verifying to closed

Running on an event workspace gives an event workspace out and doing a script like the one above gives identical outputs.

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 4848

Note: See TracTickets for help on using tickets.