Ticket #5536 (closed: worksforme)
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: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
Note: See
TracTickets for help on using
tickets.
Moved at the end of release 2.2