Skip to content

Commit

Permalink
DOC: Remove example with results differing by OS.
Browse files Browse the repository at this point in the history
Windows is fine with commas,
Mac wants decimal points and skips the commas.
  • Loading branch information
DWesl committed May 27, 2024
1 parent b51682b commit 9b82a80
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/metpy/calc/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1969,17 +1969,6 @@ def cumulative_integrate(field, axis=None, x=None, delta=None):
--------
>>> cumulative_integrate(units.Quantity(np.arange(5), "m"), delta=units("1 m"))
<Quantity([0. 0.5 2. 4.5 8. ], 'meter ** 2')>
>>> import xarray as xr
>>> data = xr.DataArray(
... np.arange(5),
... {"x": (("x",), np.ones(5), {"units": "m"})}, ("x",),
... "s", {"units": "kg/kg"}
... )
>>> cumulative_integrate(data, axis="x")
<DataArray dims: {"x": 5}
array([0, 0, 0, 0, 0])
Attrs:
units: kg m/kg
"""
n, axis, delta = _process_deriv_args(field, axis, x, delta)
take = make_take(n, axis)
Expand Down

0 comments on commit 9b82a80

Please sign in to comment.