Skip to content

Commit 6bd17cd

Browse files
mgunyhoMarton Gunyho
authored and
Marton Gunyho
committed
Update bounds docstring in dataarray also
1 parent b4e5944 commit 6bd17cd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

xarray/core/dataarray.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6152,10 +6152,12 @@ def curvefit(
61526152
broadcast to the coordinates of the array. If none or only some parameters are
61536153
passed, the rest will be assigned initial values following the default scipy
61546154
behavior.
6155-
bounds : dict-like or None, optional
6156-
Optional dictionary of parameter names to bounding values passed to the
6157-
`curve_fit` `bounds` arg. If none or only some parameters are passed, the rest
6158-
will be unbounded following the default scipy behavior.
6155+
bounds : dict-like, optional
6156+
Optional dictionary of parameter names to tuples of bounding values passed to the
6157+
`curve_fit` `bounds` arg. If any of the bounds are DataArrays, they will be
6158+
appropriately broadcast to the coordinates of the array. If none or only some
6159+
parameters are passed, the rest will be unbounded following the default scipy
6160+
behavior.
61596161
param_names : sequence of Hashable or None, optional
61606162
Sequence of names for the fittable parameters of `func`. If not supplied,
61616163
this will be automatically determined by arguments of `func`. `param_names`

0 commit comments

Comments
 (0)