diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-06-03 11:41:37 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2019-06-03 11:41:37 +0100 |
commit | 424230bbe06d24604fa8db4c5ebc5f36f0791355 (patch) | |
tree | f83d445353b73732c45c2d3841e528e7e23cc11c /Wrappers/Python | |
parent | b6c18977a20b1751c181545a7555c0d2d9a3f2d3 (diff) | |
download | framework-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-x | Wrappers/Python/ccpi/framework/framework.py | 2 |
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 |