mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 23:00:25 +01:00
Obs.__float__ now always returns a python float
This commit is contained in:
parent
87ad435830
commit
eacec6bfdc
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ class Obs:
|
||||||
pickle.dump(self, fb)
|
pickle.dump(self, fb)
|
||||||
|
|
||||||
def __float__(self):
|
def __float__(self):
|
||||||
return self.value
|
return float(self.value)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return 'Obs[' + str(self) + ']'
|
return 'Obs[' + str(self) + ']'
|
||||||
|
|
Loading…
Add table
Reference in a new issue