docstring and test added for Corr.reweight

This commit is contained in:
Fabian Joswig 2021-11-02 14:19:00 +00:00
parent 3e60403a51
commit b07f16fe1c
3 changed files with 27 additions and 5 deletions

View file

@ -1105,9 +1105,10 @@ def reweight(weight, obs, **kwargs):
Keyword arguments
-----------------
all_configs -- if True, the reweighted observables are normalized by the average of
the reweighting factor on all configurations in weight.idl and not
on the configurations in obs[i].idl.
all_configs : bool
if True, the reweighted observables are normalized by the average of
the reweighting factor on all configurations in weight.idl and not
on the configurations in obs[i].idl.
"""
result = []
for i in range(len(obs)):