CHANGELOG updated, style improvements

This commit is contained in:
Fabian Joswig 2021-09-29 15:07:35 +01:00
parent cb44675486
commit 02da9d4cad
3 changed files with 17 additions and 10 deletions

View file

@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file.
## [1.1.0] - 2021-09-29
### Added
- Corr class added
- roots module added which can find the roots of a function that depends on Monte Carlo data via pyerrors Obs
- input/hadrons module added which can read hdf5 files written by [Hadrons](https://github.com/aportelli/Hadrons)
- read_rwms can now read reweighting factors in the format used by openQCD-2.0
## [1.0.1] - 2020-11-03
### Fixed
- Bug in pyerrors.covariance fixed that appeared when working with several

View file

@ -501,7 +501,7 @@ class Obs:
else:
if isinstance(y, np.ndarray):
return np.array([self + o for o in y])
elif(y.__class__.__name__=="Corr"):
elif y.__class__.__name__ == 'Corr':
return NotImplemented
else:
return derived_observable(lambda x, **kwargs: x[0] + y, [self], man_grad=[1])
@ -515,7 +515,7 @@ class Obs:
else:
if isinstance(y, np.ndarray):
return np.array([self * o for o in y])
elif(y.__class__.__name__=="Corr"):
elif y.__class__.__name__ == 'Corr':
return NotImplemented
else:
@ -532,7 +532,7 @@ class Obs:
if isinstance(y, np.ndarray):
return np.array([self - o for o in y])
elif(y.__class__.__name__=="Corr"):
elif y.__class__.__name__ == 'Corr':
return NotImplemented
else:
@ -554,7 +554,7 @@ class Obs:
if isinstance(y, np.ndarray):
return np.array([self / o for o in y])
elif(y.__class__.__name__=="Corr"):
elif y.__class__.__name__ == 'Corr':
return NotImplemented
else: