Skip to content

Commit

Permalink
add cumulative arg to __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrhardt committed Oct 6, 2017
1 parent bdddf59 commit c0c4dbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion odl/solvers/util/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c0c4dbc

Please sign in to comment.