From c0c4dbc77fd548802a5de919916536a58789e60b Mon Sep 17 00:00:00 2001 From: "Matthias J. Ehrhardt" Date: Fri, 6 Oct 2017 11:42:12 +0100 Subject: [PATCH] add cumulative arg to __repr__ --- odl/solvers/util/callback.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odl/solvers/util/callback.py b/odl/solvers/util/callback.py index 358e961fd41..84a897c917f 100644 --- a/odl/solvers/util/callback.py +++ b/odl/solvers/util/callback.py @@ -459,7 +459,8 @@ def reset(self): def __repr__(self): """Return ``repr(self)``.""" optargs = [('fmt', self.fmt, 'Time elapsed = {:<5.03f} s'), - ('step', self.step, 1)] + ('step', self.step, 1), + ('cumulative', self.cumulative, False)] inner_str = signature_string([], optargs) return '{}({})'.format(self.__class__.__name__, inner_str)