Ticket #9499 (closed: worksforme)
SpectrumList not working for LoadISISNexus data
Reported by: | Anders Markvardsen | Owned by: | Federico M Pouzols |
---|---|---|---|
Priority: | major | Milestone: | Release 3.3 |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Dan Nixon |
Description
Running the following (using data from
ws = LoadISISNexus('LOQ49886.nxs') print ws.getNumberHistograms() ws = LoadISISNexus('LOQ49886.nxs', SpectrumList='5,6,9') print ws.getNumberHistograms()
produces the output
17792 17795
where the expected output would have been
17792 3
Note that LoadMuonNexus gives the right output, i.e.
ws = LoadMuonNexus('ARGUS0026287.nxs') print ws[0].getNumberHistograms() ws = LoadMuonNexus('ARGUS0026287.nxs', SpectrumList='5,6,9') print ws[0].getNumberHistograms()
produces the output
192 3
Change History
comment:2 Changed 6 years ago by Federico M Pouzols
- Owner set to Federico M Pouzols
- Status changed from new to assigned
comment:3 Changed 6 years ago by Federico M Pouzols
- Status changed from assigned to verify
- Resolution set to worksforme
This works for me. Alex is right that #9989 must have fixed this ticket. I checked with LOQ49886.nxs and other files (see below), and variations of the example command using 'SpectrumList' always produce the expected output.
To test:
- check that you get what you expect from commands like
ws = LoadISISNexus('LOQ49886.nxs', SpectrumList='5,6,7,9') print ws.getNumberHistograms()
=> should print 4 (length of SpectrumList)
You can also check other files, like systemtests/Data/LOQ/LOQ74014.nxs, systemtests/Data/INTER00013460.nxs, or systemtests/Data/SANS2D/SANS2D00000808.nxs.
Note: See
TracTickets for help on using
tickets.
This may be fixed im #9989