We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88285f9 commit c25c825Copy full SHA for c25c825
xarray/core/dataarray.py
@@ -6280,7 +6280,7 @@ def curvefit(
6280
>>> def exp_decay(t, time_constant, amplitude):
6281
... return np.exp(-t / time_constant) * amplitude
6282
...
6283
- >>> t = np.linspace(0, 10, 11)
+ >>> t = np.arange(11)
6284
>>> da = xr.DataArray(
6285
... np.stack(
6286
... [
@@ -6305,7 +6305,7 @@ def curvefit(
6305
0.00910995]])
6306
Coordinates:
6307
* 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
+ * time (time) int64 0 1 2 3 4 5 6 7 8 9 10
6309
6310
Fit the exponential decay function to the data along the ``time`` dimension:
6311
0 commit comments