Skip to content

Commit 3459e6f

Browse files
mgunyhoMarton Gunyho
and
Marton Gunyho
authored
Fix flaky doctest with NUMBER doctest option from pytest (#7893)
Co-authored-by: Marton Gunyho <[email protected]>
1 parent 25b9ec8 commit 3459e6f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xarray/core/dataarray.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -6258,9 +6258,11 @@ def curvefit(
62586258
Fit the exponential decay function to the data along the ``time`` dimension:
62596259
62606260
>>> fit_result = da.curvefit("time", exp_decay)
6261-
>>> fit_result["curvefit_coefficients"].sel(param="time_constant")
6261+
>>> fit_result["curvefit_coefficients"].sel(
6262+
... param="time_constant"
6263+
... ) # doctest: +NUMBER
62626264
<xarray.DataArray 'curvefit_coefficients' (x: 3)>
6263-
array([1.05692036, 1.73549639, 2.94215771])
6265+
array([1.0569203, 1.7354963, 2.9421577])
62646266
Coordinates:
62656267
* x (x) int64 0 1 2
62666268
param <U13 'time_constant'

0 commit comments

Comments
 (0)