Ticket #1447 (closed: duplicate)
Move the Assign*() and Transmission*() code into a SANSReductionStep class
Reported by: | Steve Williams | Owned by: | Steve Williams |
---|---|---|---|
Priority: | major | Milestone: | Iteration 25 |
Component: | Mantid | Keywords: | |
Cc: | Martyn, Gigg, doucetm@… | Blocked By: | |
Blocking: | Tester: | Stuart Campbell |
Description
Add the following commands into Mathieu's CommandInterface.py:
- AssignSample()
- TransmissionSample()
- AssignCan()
- TransmissionCan()
- SANS2D()
- LOQ()
All but the last two will be implemented in a class decended from SANSReductionStep, an instance of which will be added to a Reducer class instance. All run specific instument changes will be moved into this class and its interface will replace the _SAMPLE_SETUP _SAMPLE_RUN SCATTER_SAMPLE, SCATTER_CAN, TRANS_SAMPLE, TRANS_CAN, PERIOD_NOS, DIRECT_SAMPLE, DIRECT_CAN, DIRECT_CAN, _SAMPLE_N_PERIODS, _CAN_N_PERIODS, _TRANS_SAMPLE_N_PERIODS, DIRECT_SAMPLE_N_PERIODS, TRANS_SAMPLE_N_CAN, DIRECT_SAMPLE_N_CAN global variables and the RunDetails class.
The LOQ() and SAN2D() commands will be made to add LOQ and SANS2D Instrument instances to that Reducer.
This will also require:
- understanding and possible debugging of Mathieu's existing framework
- writing Python unit tests
- adapting the system tests and the GUI to allow testing by doing reductions with some functions imported from CommandInterface.py and some from SANSReduction.py
Change History
comment:2 Changed 10 years ago by Mathieu Doucet
- Cc Martyn, Gigg, doucetm@… added; Martyn Gigg removed
comment:5 Changed 10 years ago by Mathieu Doucet
(In [6070]) Added TransmissionCan and TransmissionSample.
comment:7 Changed 10 years ago by Steve Williams
- Status changed from accepted to verify
- Resolution set to duplicate
- Component set to Mantid
This was done by Mathieu in #1570
comment:8 Changed 10 years ago by Stuart Campbell
- Status changed from verify to verifying
- Tester set to Stuart Campbell
comment:9 Changed 10 years ago by Stuart Campbell
- Status changed from verifying to closed
duplicate.
comment:10 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 2294
Estimated total time 2 days.
There is uncertainty because Mathieu's framework is a bit complicated and under development. The task is complicated because the changes will touch a lot of the SANSReduction script and the C++ GUI.
0.5 days to write tests, adapt existing system tests and hand run the GUI, 0.5 days to fix problems from testing. 0.5 days to move the code into the ReductionStep class and write its interface, 0.5 days to change SANSReduction.py and SANSRunWindow.cpp to use this interface.