mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
CHANGELOG updated, style improvements
This commit is contained in:
parent
cb44675486
commit
02da9d4cad
3 changed files with 17 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue