fvpolpeta / devide

Automatically exported from code.google.com/p/devide
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

passing numpy array #159

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In two code runners 
2. In first - set obj.outputs[0] = numpy array
3. In second - set obj.inputs[0] = numpy array from first code runner

What is the expected output? What do you see instead?
Raises exception about truth value of numpy array (use .any() or .all())

What version of the product are you using? On what operating system?
9.8 xp 32bit

Please provide any additional information below.
Changed line 1654 in module_manager and got it to work 
if od and hasattr(od, 'GetClassName') and hasattr(od, 'ShallowCopy'):
to 
if od is not None and hasattr(od, 'GetClassName') and hasattr(od,
'ShallowCopy'):

Original issue reported on code.google.com by barry.ga...@gmail.com on 19 Nov 2009 at 5:09