Ticket #3690 (closed: fixed)
Cull uses of ExperimentInfo::getBaseInstrument()
Reported by: | Russell Taylor | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | minor | Milestone: | Iteration 30 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Martyn Gigg |
Description
I suspect that the vast majority (all?) of such calls are unnecessary, and should either be calling just getInstrument() or (especially in the tests) are just getting hold of a pristine instrument to modify - in which case they could just create a new instrument and use setInstrument().
Change History
comment:6 Changed 9 years ago by Russell Taylor
- Status changed from accepted to verify
- Resolution set to fixed
ExperimentInfo::getBaseInstrument is no more. The corresponding method Instrument::baseInstrument (which returned the same thing) is used only 8 times in the code (and 12 in the tests), which is suitably rare.
comment:7 Changed 9 years ago by Martyn Gigg
- Status changed from verify to verifying
- Tester set to Martyn Gigg
Note: See
TracTickets for help on using
tickets.