Ticket #1472 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

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:1 Changed 10 years ago by Martyn Gigg

(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

comment:2 Changed 10 years ago by Nick Draper

  • Owner set to Martyn Gigg
  • Status changed from new to assigned

comment:3 Changed 10 years ago by Martyn Gigg

  • Component set to Mantid
  • Description modified (diff)

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

comment:7 Changed 10 years ago by Michael Whitty

  • Status changed from verifying to closed

the script above works in [7139], since the parameter map is now reloaded into the workspace even when the instrument is taken from the cache.

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2319

Note: See TracTickets for help on using tickets.