mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-16 12:33:41 +02: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.
|
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
|
## [1.0.1] - 2020-11-03
|
||||||
### Fixed
|
### Fixed
|
||||||
- Bug in pyerrors.covariance fixed that appeared when working with several
|
- Bug in pyerrors.covariance fixed that appeared when working with several
|
||||||
|
|
|
@ -501,7 +501,7 @@ class Obs:
|
||||||
else:
|
else:
|
||||||
if isinstance(y, np.ndarray):
|
if isinstance(y, np.ndarray):
|
||||||
return np.array([self + o for o in y])
|
return np.array([self + o for o in y])
|
||||||
elif(y.__class__.__name__=="Corr"):
|
elif y.__class__.__name__ == 'Corr':
|
||||||
return NotImplemented
|
return NotImplemented
|
||||||
else:
|
else:
|
||||||
return derived_observable(lambda x, **kwargs: x[0] + y, [self], man_grad=[1])
|
return derived_observable(lambda x, **kwargs: x[0] + y, [self], man_grad=[1])
|
||||||
|
@ -515,7 +515,7 @@ class Obs:
|
||||||
else:
|
else:
|
||||||
if isinstance(y, np.ndarray):
|
if isinstance(y, np.ndarray):
|
||||||
return np.array([self * o for o in y])
|
return np.array([self * o for o in y])
|
||||||
elif(y.__class__.__name__=="Corr"):
|
elif y.__class__.__name__ == 'Corr':
|
||||||
return NotImplemented
|
return NotImplemented
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
@ -532,7 +532,7 @@ class Obs:
|
||||||
if isinstance(y, np.ndarray):
|
if isinstance(y, np.ndarray):
|
||||||
return np.array([self - o for o in y])
|
return np.array([self - o for o in y])
|
||||||
|
|
||||||
elif(y.__class__.__name__=="Corr"):
|
elif y.__class__.__name__ == 'Corr':
|
||||||
return NotImplemented
|
return NotImplemented
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
@ -554,7 +554,7 @@ class Obs:
|
||||||
if isinstance(y, np.ndarray):
|
if isinstance(y, np.ndarray):
|
||||||
return np.array([self / o for o in y])
|
return np.array([self / o for o in y])
|
||||||
|
|
||||||
elif(y.__class__.__name__=="Corr"):
|
elif y.__class__.__name__ == 'Corr':
|
||||||
return NotImplemented
|
return NotImplemented
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue