Skip to content

Commit

Permalink
fxns: unc: add __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
goi42 committed May 21, 2019
1 parent 7080b28 commit 4bb90a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/fxns.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,3 +714,9 @@ def __imul__(self, another):

def __idiv__(self, another):
return self / another

def __repr__(self):
return '< {v}+/-{stat}+/-{sys} >'.format(
v=self.getValue(),
stat=self.getError('statistical'),
sys=self.getError('systematic'))

0 comments on commit 4bb90a0

Please sign in to comment.