Ticket #10170 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

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:1 Changed 6 years ago by Nick Draper

  • Status changed from new to assigned

comment:2 Changed 6 years ago by Martyn Gigg

  • Status changed from assigned to inprogress

comment:3 Changed 6 years ago by Martyn Gigg

Add support for summing multiple sets of spectra in LoadVesuvio

Refs #10170

Changeset: 586a3476f3638efd1d8648f23619c39bffdb156c

comment:4 Changed 6 years ago by Martyn Gigg

Fix single foil mode in LoadVesuvio

Refs #10170

Changeset: 12194dd2681dd04ed571b8c3647f5ad3e3851b29

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

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 11012

Note: See TracTickets for help on using tickets.