[opengm] 35/40: Fixed __repr__ function
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 14 16:06:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository opengm.
commit 3e0fb48224c7320eb0cd41d8e06968d6db32331d
Author: joncrall <erotemic at gmail.com>
Date: Tue Jan 19 10:32:34 2016 -0500
Fixed __repr__ function
---
src/interfaces/python/opengm/opengmcore/function_injector.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/interfaces/python/opengm/opengmcore/function_injector.py b/src/interfaces/python/opengm/opengmcore/function_injector.py
index a822ee8..bf0f832 100644
--- a/src/interfaces/python/opengm/opengmcore/function_injector.py
+++ b/src/interfaces/python/opengm/opengmcore/function_injector.py
@@ -89,7 +89,7 @@ def _extend_function_type_classes():
return numpy.array(self).__str__()
def __repr__(self):
" get a function representation as s string "
- return self.asNumpyArray().__repr__()
+ return numpy.array(self).__repr__()
def __getitem__(self,labels):
""" get the values of a function for a given labeling
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git
More information about the debian-science-commits
mailing list