Ticket #3106 (closed: fixed)
LoadEventNexus only loads a 1:1 spectra map
Reported by: | Martyn Gigg | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | critical | Milestone: | Iteration 29 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Steve Williams |
Description
ISIS event files still have hardware grouping so that the spectra are not a 1:1 map of the detectors. The spectra as usual start from 1 and the only place the mapping is defined is in the legacy 'isis_vms_compat' block.
For now read this block to set up the correct spectra->detector mapping.
Attachments
Change History
comment:2 Changed 9 years ago by Martyn Gigg
- Status changed from new to accepted
- Priority changed from major to critical
comment:8 Changed 9 years ago by Martyn Gigg
(In [12217]) Swap to indexing the events by spectra for those files that have loaded a spectra mapping as well, currently just the ISIS ones. Those that use the default mapping remain unchanged until I can figure out all the consequences for changing everyone to index events by spectra. It basically requires the spectra number to match the event ID and not just start from zero. Refs #3106
comment:9 Changed 9 years ago by Janik Zikovsky
Hi Martyn,
LoadRunLogs does not seem to load some of the log entries that LoadLogsFromSNSNexus; in particular, the phi, chi, omega logs of a TOPAZ event nexus are not loaded whereas they were previously.
comment:10 Changed 9 years ago by Martyn Gigg
comment:11 Changed 9 years ago by Martyn Gigg
comment:12 Changed 9 years ago by Martyn Gigg
comment:13 Changed 9 years ago by Martyn Gigg
comment:14 Changed 9 years ago by Martyn Gigg
comment:15 Changed 9 years ago by Martyn Gigg
comment:16 Changed 9 years ago by Martyn Gigg
comment:17 Changed 9 years ago by Martyn Gigg
(In [12382]) LoadInstrument now has a new property called RewriteSpectraMap. If it is true (the default) then a new spectra map and axis are created on the input workspace and a 1:1 mapping of spectra->detector ID is set up. This should cure the issue that users of Python algorithms and CreateWorkspace don't get anything that is that useful. LoadEventNexus has also been updated to handle spectra rather than single pixel IDs for all files rather than just ISIS ones. A little tidy up is still required but the functionality is complete. Re #3106
comment:18 Changed 9 years ago by Martyn Gigg
comment:19 Changed 9 years ago by Martyn Gigg
comment:20 Changed 9 years ago by Martyn Gigg
comment:21 Changed 9 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to fixed
Changed 9 years ago by Janik Zikovsky
- Attachment DataHandlingTest.LoadInstrumentTestPerformance.test_SNAP.runtime.v.revision.ALL.png added
Performance test for loading SNAP instrument
comment:22 Changed 9 years ago by Janik Zikovsky
Hi Martyn,
According to performance tests, Rev [12382] introduced a slow-down in instrument loading (from 3.6 seconds to 5.4 seconds for SNAP, in this example). You can see it in the attached graph (the full report is hosted at ORNL so I don't think you can get to it?). Other instruments have slowed as well...
The performance test does not send out emails saying "so-and-so has slowed" because it occasionally is way slower due to multiple jobs running on the same machine (as you can see from the spikes in the graph). It is probably not such a big deal but I thought you should be aware of this.
Cheers,
Janik
comment:23 Changed 9 years ago by Steve Williams
- Status changed from verify to verifying
- Tester set to Steve Williams
comment:24 Changed 9 years ago by Steve Williams
- Status changed from verifying to closed
Checked some log and spectra map information from the LET1511, SANS2D5512 and CNCS7860 nexus files. The files loaded and the workspace data I checked matched and the HDF files. Each spectrum in the CNCS file was linked to a detector with the same number.
comment:25 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 3953
(In [12114]) Update to LoadEventNexus and LoadNexusMonitors to read in the spectra table from the NeXus file if it exists. It is only defined for the isis_vms_compat block at the moment. Refs #3106 #3099