Skip to content

Commit

Permalink
doc: filters: fix wrong example in mapne doc
Browse files Browse the repository at this point in the history
Change-Id: I3b997735281057bad8a8fb6b055b5664c8608f03
  • Loading branch information
paveyry committed Apr 12, 2024
1 parent d49639b commit d917562
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docsrc/doc/filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ if its result is not empty. This applies to each entry of the filtered :ref:`tim
}
>>> _ | map(mean(_value))
error: cannot compute mean of empty timeseries
>>> _ | mapne(_value, mean(_value))
>>> _ | mapne(mean(_value), _value)
dict {
pathElement1: 2.5
pathElement2: 6.5
Expand All @@ -524,13 +524,14 @@ if its result is not empty. This applies to each entry of the filtered :ref:`tim
}
>>> _ | map(mean(_value))
error: cannot compute mean of empty dict
>>> _ | mapne(_value, mean(_value) + 12)
>>> _ | mapne(mean(_value) + 12, _value)
timeseries{
tstamp1: 14.5
tstamp2: 14.5
tstamp4: 14.5
}
.. _recmap:

recmap
Expand Down

0 comments on commit d917562

Please sign in to comment.