Skip to content

Commit c25c825

Browse files
authored
Refine curvefit doctest (#8328)
A very small change
1 parent 88285f9 commit c25c825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray/core/dataarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6280,7 +6280,7 @@ def curvefit(
62806280
>>> def exp_decay(t, time_constant, amplitude):
62816281
... return np.exp(-t / time_constant) * amplitude
62826282
...
6283-
>>> t = np.linspace(0, 10, 11)
6283+
>>> t = np.arange(11)
62846284
>>> da = xr.DataArray(
62856285
... np.stack(
62866286
... [
@@ -6305,7 +6305,7 @@ def curvefit(
63056305
0.00910995]])
63066306
Coordinates:
63076307
* x (x) int64 0 1 2
6308-
* time (time) float64 0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0
6308+
* time (time) int64 0 1 2 3 4 5 6 7 8 9 10
63096309
63106310
Fit the exponential decay function to the data along the ``time`` dimension:
63116311

0 commit comments

Comments
 (0)