Ticket #4594 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Convert To Energy GUI cannot set the Ei on a workspace.

Reported by: Stuart Campbell Owned by: Stuart Campbell
Priority: critical Milestone: Release 2.0
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Andrei Savici

Description

For the case of instruments without sufficient monitors to run GetEi() the value for Ei is modified on the workspace Run object. This is currently done with the code:

Line 279:    monitor_ws.getRun()['Ei'] = ei_value

which fails with the message

__setitem__(<libMantidPythonAPI.Run object at 0x24dbec0>, Ei, 4.0, False)
"RuntimeError on line 2: "Property with given name already exists search object EI" in file 'MantidFramework.py' at line 832"

Change History

comment:1 Changed 9 years ago by Stuart Campbell

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Stuart Campbell

Changed method for modifying Ei on run object. refs #4594

I've changed to calling AddSampleLog() rather than using the python api.

Changeset: ea5e0113aa2ba3ecd4bf8be3dc447c9296b9e62a

comment:3 Changed 9 years ago by Stuart Campbell

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:4 Changed 9 years ago by Stuart Campbell

Changed method for modifying Ei on run object. refs #4594

I've changed to calling AddSampleLog() rather than using the python api.

Changeset: ea5e0113aa2ba3ecd4bf8be3dc447c9296b9e62a

comment:5 Changed 9 years ago by Andrei Savici

  • Status changed from verify to verifying
  • Tester set to Andrei Savici

comment:6 Changed 9 years ago by Stuart Campbell

fix error in order of parameters. refs #4594

Changeset: f314bce43f660eb9389ac84c18ba9dd4e15ba7b0

comment:7 Changed 9 years ago by Andrei Savici

  • Status changed from verifying to closed

Works as advertised

comment:8 Changed 9 years ago by Stuart Campbell

fix error in order of parameters. refs #4594

Changeset: f314bce43f660eb9389ac84c18ba9dd4e15ba7b0

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5441

Note: See TracTickets for help on using tickets.