Ticket #1472 (closed: fixed)
Running some load routines twice clears the parameter map
Reported by: | Martyn Gigg | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | major | Milestone: | Iteration 25 |
Component: | Mantid | Keywords: | |
Cc: | campbellsi@… | Blocked By: | |
Blocking: | Tester: | Michael Whitty |
Description (last modified by Martyn Gigg) (diff)
When running the following script the first call to getNumberParameter is successful but the second fails.
w1 = LoadEventPreNeXus(EventFilename="../../../Test/Data/sns_event_prenexus/CNCS_7850_neutron_event.dat", OutputWorkspace="w1") w1_inst = mtd.getMatrixWorkspace("w1").getInstrument() print w1_inst.getNumberParameter("scale-factor") w2 = LoadEventPreNeXus(EventFilename="../../../Test/Data/sns_event_prenexus/CNCS_7850_neutron_event.dat", OutputWorkspace="w2") w2_inst = mtd.getMatrixWorkspace("w2").getInstrument() print w2_inst.getNumberParameter("scale-factor")
Change History
comment:2 Changed 10 years ago by Nick Draper
- Owner set to Martyn Gigg
- Status changed from new to assigned
comment:4 Changed 10 years ago by Martyn Gigg
- Status changed from assigned to accepted
In 6406 this seems to be fixed. I think this is a consequence of changeset [6109].
Marking as fixed.
comment:5 Changed 10 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to fixed
comment:6 Changed 10 years ago by Michael Whitty
- Status changed from verify to verifying
- Tester set to Michael Whitty
Note: See
TracTickets for help on using
tickets.
(In [5648]) Add call to populate the parameter map in the locally created workspace to LoadEventPreNeXus. If this is not done a second load of the instrument clears the map. Re #1472