Ticket #10170 (closed: fixed)
LoadVesuvio needs to support summing separate ranges into spectra in same workspace
Reported by: | Martyn Gigg | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | critical | Milestone: | Release 3.3 |
Component: | Indirect Inelastic | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Harry Jeffery |
Description
LoadVesuvio currently has a SumSpectra option, which collapses all of the data into a single spectrum.
The instrument scientists would like the ability to specify multiple ranges that are then summed separately into individual spectra on the output workspace, i.e. LoadVesuvio with
Spectra="135-142,143-150", SumSpectra=True
would produce an output workspace with 2 spectra: the first the sum of spectra 135-142 and the second the sum of spectra 143-150.
Change History
comment:3 Changed 6 years ago by Martyn Gigg
Add support for summing multiple sets of spectra in LoadVesuvio
Refs #10170
Changeset: 586a3476f3638efd1d8648f23619c39bffdb156c
comment:5 Changed 6 years ago by Martyn Gigg
Add multiple summing tests for Vesuvio
Refs #10170
Changeset: 595016986dbee3da884632221a64f90cafff5789
comment:6 Changed 6 years ago by Martyn Gigg
- Status changed from inprogress to verify
- Resolution set to fixed
Branch: In mantid and systemtests
Tester: The following script demonstrates the idea of the changes. The data is in the systemtests repository.
runs = "14188" # Examples of spectra strings that are now expceted spectra = "135" # Load single spectra spectra = "135-148 # Load range and if SumSpectra is true, collapse to single spectrum spectra = "135-148;152-165" # Load ranges and if SumSpectra is true, collapse to 2 spectra: the first sum of 135-148 and the second sum of 152-165 sum_spectra = True diff_opt = "SingleDifference" data_nosum = LoadVesuvio(Filename=runs, SpectrumList=spectra, Mode=diff_opt, SumSpectra=True)
comment:7 Changed 6 years ago by Harry Jeffery
- Status changed from verify to verifying
- Tester set to Harry Jeffery
comment:8 Changed 6 years ago by Harry Jeffery
- Status changed from verifying to closed
Merge remote-tracking branch 'origin/feature/10170_loadvesuvio_sum_multiple_spectra'
Full changeset: 8843ebb7f272ffbcf6f978ac83ec2aa1ed93426b