From dc396e542c7040f6007d85d51dff8231d84d3d06 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Thu, 23 Jun 2022 14:00:31 +0100 Subject: [PATCH] docs: Obs.reweight docstring now matches method arguments. --- pyerrors/obs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyerrors/obs.py b/pyerrors/obs.py index fa07223d..df22a36c 100644 --- a/pyerrors/obs.py +++ b/pyerrors/obs.py @@ -426,7 +426,7 @@ class Obs: my_string_list.append(my_string) print('\n'.join(my_string_list)) - def reweight(self, rw): + def reweight(self, weight): """Reweight the obs with given rewighting factors. Parameters @@ -439,7 +439,7 @@ class Obs: the reweighting factor on all configurations in weight.idl and not on the configurations in obs[i].idl. Default False. """ - return reweight(rw, [self])[0] + return reweight(weight, [self])[0] def is_zero_within_error(self, sigma=1): """Checks whether the observable is zero within 'sigma' standard errors.