From b930ddef320d93f984181db19fec8e9c9a41be8f Mon Sep 17 00:00:00 2001 From: reneeotten Date: Sun, 15 May 2022 12:45:10 -0400 Subject: [PATCH] DOC: clarify "weights" in docstring of Model.fit() --- lmfit/model.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lmfit/model.py b/lmfit/model.py index dfb0f8159..5df5b0f1f 100644 --- a/lmfit/model.py +++ b/lmfit/model.py @@ -901,8 +901,9 @@ def fit(self, data, params=None, weights=None, method='leastsq', params : Parameters, optional Parameters to use in fit (default is None). weights : array_like, optional - Weights to use for the calculation of the fit residual - (default is None). Must have the same size as `data`. + Weights to use for the calculation of the fit residual [i.e., + `weights*(data-fit)`]. Default is None; must have the same size as + `data`. method : str, optional Name of fitting method to use (default is `'leastsq'`). iter_cb : callable, optional