New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing usability issues for reducing HFIR data from SPICE file #370
Conversation
1. LoadSpiceAscii has date time format with default to SPICE's current standard 2. ConvertCWPDMDToSpectra is explained in the sumary; 3. Binning parameters can accept bin size only in ConvertCWPDMDToSpectra. Xmin and Xmax will be searched automatically. - modified: ../Mantid/Framework/DataHandling/src/LoadSpiceAscii.cpp - modified: ../Mantid/Framework/MDAlgorithms/inc/MantidMDAlgorithms/ConvertCWPDMDToSpectra.h - modified: ../Mantid/Framework/MDAlgorithms/src/ConvertCWPDMDToSpectra.cpp - modified: ../Mantid/Framework/MDAlgorithms/test/ConvertCWPDMDToSpectraTest.h
And added unit test for it. Fixed a bug about MomentumTransfer in ConvertCWPDMDToSpectra. Use Degrees for output workspace if target unit is 2theta for ConvertCWPDMDToSpectra.
Jenkins, retest this please |
Jenkins, retest this please |
Retest please. |
Jenkins, retest this please |
Tester: Here is the list of item that you can check against the requests for this ticket:
|
Test script: test file 'HB2A_exp0231_scan0001.dat' can be found in unit test. LoadSpiceAscii(Filename='HB2A_exp0231_scan0001.dat', DateAndTimeLog='date,MM/DD/YYYY,time,HH:MM:SS AM', OutputWorkspace='HB2A_exp0231_scan0001_DataTable', RunInfoWorkspace='HB2A_exp0231_scan0001_Log') ConvertSpiceDataToRealSpace(InputWorkspace='HB2A_exp0231_scan0001_DataTable', RunInfoWorkspace='HB2A_exp0231_scan0001_Log', OutputWorkspace='HB2A_exp0231_scan0001_DataMD', OutputMonitorWorkspace='HB2A_exp0231_scan0001_MonitorMD') ConvertCWPDMDToSpectra(InputWorkspace='HB2A_exp0231_scan0001_DataMD', InputMonitorWorkspace='HB2A_exp0231_scan0001_MonitorMD', ConvertCWPDMDToSpectra(InputWorkspace='HB2A_exp0231_scan0001_DataMD', InputMonitorWorkspace='HB2A_exp0231_scan0001_MonitorMD', ConvertCWPDMDToSpectra(InputWorkspace='HB2A_exp0231_scan0001_DataMD', InputMonitorWorkspace='HB2A_exp0231_scan0001_MonitorMD', ConvertCWPDMDToSpectra(InputWorkspace='HB2A_exp0231_scan0001_DataMD', InputMonitorWorkspace='HB2A_exp0231_scan0001_MonitorMD', ConvertCWPDMDToSpectra(InputWorkspace='HB2A_exp0231_scan0001_DataMD', InputMonitorWorkspace='HB2A_exp0231_scan0001_MonitorMD', ConvertCWPDMDToSpectra(InputWorkspace='HB2A_exp0231_scan0001_DataMD', InputMonitorWorkspace='HB2A_exp0231_scan0001_MonitorMD', |
Retest this please. |
The code is very complicated. It reimplements Rebin, InterpolatingRebin, Scale. It can be reduced by at least a factor of 3, and made more readable. I have created ticket #11399 to deal with this issue |
Fixing usability issues for reducing HFIR data from SPICE file
This is originally ticket #11282(http://trac.mantidproject.org/mantid/ticket/11282).