Obs.__float__ now always returns a python float

This commit is contained in:
Fabian Joswig 2021-10-18 09:34:10 +01:00
parent 87ad435830
commit eacec6bfdc

View file

@ -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) + ']'