Ticket #6258 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Inplace operation within a PythonAlgorithm raises an error

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: critical Milestone: Release 2.4
Component: Mantid Keywords:
Cc: doucetm@… Blocked By:
Blocking: Tester: Owen Arnold

Description

Attached is a simple python algorithm that calls Scale internally. It fails if the input & output workspace are the same.

data = [1.0,2.0,3.0]
test_ws = CreateWorkspace(DataX=data,DataY=data,NSpec=1,UnitX='Wavelength')
ScaleWrap(InputWorkspace="test_ws", OutputWorkspace="test_ws")

Attachments

ScaleWrap.py (811 bytes) - added by Martyn Gigg 8 years ago.

Change History

Changed 8 years ago by Martyn Gigg

comment:1 Changed 8 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Martyn Gigg

Ensure Python sub algorithms have correct child status. Refs #6258

They were not children and hence the workspace locking was trying to double lock and Poco threw an exception when it tried.

Changeset: d1d736f6bf0ee838e6c07d7e81c7241296539de7

comment:3 Changed 8 years ago by Martyn Gigg

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

comment:4 Changed 8 years ago by Martyn Gigg

Ensure Python sub algorithms have correct child status. Refs #6258

They were not children and hence the workspace locking was trying to double lock and Poco threw an exception when it tried.

Changeset: d1d736f6bf0ee838e6c07d7e81c7241296539de7

comment:5 Changed 8 years ago by Owen Arnold

  • Status changed from verify to verifying
  • Tester set to Owen Arnold

comment:6 Changed 8 years ago by Owen Arnold

  • Status changed from verifying to closed

Original scenario passes without error now.

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7104

Note: See TracTickets for help on using tickets.