Ticket #5536 (closed: worksforme)

Opened 8 years ago

Last modified 5 years ago

Self assignement in new Python Algorithms

Reported by: Owen Arnold Owned by: Martyn Gigg
Priority: critical Milestone: Release 2.3
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Russell Taylor

Description (last modified by Martyn Gigg) (diff)

Trying to do something like this:

a = CreateMDHistoWorkspace(SignalInput='1,2,3,4,5',ErrorInput='1,1,1,1,1',Dimensionality='1',Extents='-1,1',NumberOfBins='5',Names='A',Units='U')
b = CreateMDHistoWorkspace(SignalInput='1,2,3,4,5',ErrorInput='1,1,1,1,1',Dimensionality='1',Extents='-1,1',NumberOfBins='5',Names='A',Units='U')

c = a * b

a *= b

works in the mantid plot script window, but does not work with a combination of the new style python Algorithms and the unit test suite. Try running the code above using Stitch1D.py and run it from Stitch1DTest.py. The self assignment version hangs.

Change History

comment:1 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.2 to Release 2.3

Moved at the end of release 2.2

comment:2 Changed 8 years ago by Martyn Gigg

  • Status changed from new to verify
  • Resolution set to worksforme
  • Description modified (diff)

This seems to work for me now. Some changes in the underlying locking must have fixed it.

comment:3 Changed 8 years ago by Russell Taylor

  • Status changed from verify to verifying
  • Tester set to Russell Taylor

comment:4 Changed 8 years ago by Russell Taylor

  • Status changed from verifying to closed

Works for me too.

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6382

Note: See TracTickets for help on using tickets.