summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-06-03 11:41:37 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2019-06-03 11:41:37 +0100
commit424230bbe06d24604fa8db4c5ebc5f36f0791355 (patch)
treef83d445353b73732c45c2d3841e528e7e23cc11c /Wrappers/Python
parentb6c18977a20b1751c181545a7555c0d2d9a3f2d3 (diff)
downloadframework-424230bbe06d24604fa8db4c5ebc5f36f0791355.tar.gz
framework-424230bbe06d24604fa8db4c5ebc5f36f0791355.tar.bz2
framework-424230bbe06d24604fa8db4c5ebc5f36f0791355.tar.xz
framework-424230bbe06d24604fa8db4c5ebc5f36f0791355.zip
fix dot for numpy method
Diffstat (limited to 'Wrappers/Python')
-rwxr-xr-xWrappers/Python/ccpi/framework/framework.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/framework/framework.py b/Wrappers/Python/ccpi/framework/framework.py
index 3840f2c..e906ca6 100755
--- a/Wrappers/Python/ccpi/framework/framework.py
+++ b/Wrappers/Python/ccpi/framework/framework.py
@@ -821,7 +821,7 @@ class DataContainer(object):
if self.shape == other.shape:
# return (self*other).sum()
if method == 'numpy':
- return numpy.dot(self.as_array().ravel(), other.as_array())
+ return numpy.dot(self.as_array().ravel(), other.as_array().ravel())
elif method == 'reduce':
# see https://github.com/vais-ral/CCPi-Framework/pull/273
# notice that Python seems to be smart enough to use