From 91ec0bff418c45c297205c1e731fa24e0bae4a51 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Wed, 4 Jan 2023 15:33:46 +0100 Subject: [PATCH 1/3] feat: introduced alias gm for Obs.gamma_method. --- pyerrors/obs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyerrors/obs.py b/pyerrors/obs.py index 6b25b723..07998420 100644 --- a/pyerrors/obs.py +++ b/pyerrors/obs.py @@ -349,6 +349,8 @@ class Obs: self.ddvalue = np.sqrt(self.ddvalue) / self._dvalue return + gm = gamma_method + def _calc_gamma(self, deltas, idx, shape, w_max, fft): """Calculate Gamma_{AA} from the deltas, which are defined on idx. idx is assumed to be a contiguous range (possibly with a stepsize != 1) From 129741571082e6c03bcd67c97b7bbe03bd33b7d3 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Thu, 5 Jan 2023 11:56:48 +0100 Subject: [PATCH 2/3] test: test for alias gm added. --- tests/obs_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/obs_test.py b/tests/obs_test.py index bcec9252..5fbedf98 100644 --- a/tests/obs_test.py +++ b/tests/obs_test.py @@ -1015,3 +1015,15 @@ def test_hash(): assert hash(i_obs) != hash((1 + 1e-7) * i_obs) assert hash(obs) != hash(o1) assert hash(o1) != hash(o2) + +def test_gm_alias(): + samples = np.random.rand(500) + + tt1 = pe.Obs([samples], ["ens"]) + tt1.gamma_method() + + tt2 = pe.Obs([samples], ["ens"]) + tt2.gm() + + assert np.isclose(tt1.dvalue, tt2.dvalue) + From eab6834cc3259e68ab33061eecdf0922d1155df3 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Thu, 5 Jan 2023 12:00:19 +0100 Subject: [PATCH 3/3] docs: CHANGELOG updated. --- CHANGELOG.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7b5835d..0046eb05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. +## [2.5.0] - 2023-xx-xx +### Added +- Hotelling t-squared p-value added for correlated fits. +- String conversion of numpy arrays containing `Obs` improved. +- Alias `gm` for `Obs.gamma_method` added. +- Input routine for xSF measurement program added. + +### Fixed +- Complex valued `Corr` objects fixed. +- Small bug in `qtop_projection` fixed. + ## [2.4.0] - 2022-12-01 ### Added - Log-derivatives and symmetric log-effective mass added. @@ -13,8 +24,6 @@ All notable changes to this project will be documented in this file. - Bug in `input.json` export in connection with `numpy.int64` fixed. - Small bug fixes in `input.openQCD`. - - ## [2.3.1] - 2022-10-19 ### Fixed - Integrated autocorrelation times are now correctly estimated for gapped irregular Monte Carlo chains.