Skip to content
Snippets Groups Projects
Commit cbff3658 authored by Martin Lange's avatar Martin Lange
Browse files

fix numbered lists to rst syntax

parent b285feed
No related branches found
No related tags found
1 merge request!127Doc-tests
......@@ -78,8 +78,8 @@ File ``src/scale.py``:
In :meth:`.Adapter._get_data`, we:
1. Pull the input for the requested ``time``
1. Multiply the input by ``scale`` and return the result
#. Pull the input for the requested ``time``
#. Multiply the input by ``scale`` and return the result
Time-dependent ``TimeInterpolation`` adapter
--------------------------------------------
......@@ -242,9 +242,9 @@ In :meth:`.Adapter._get_data`, we can now do the interpolation whenever data is
In :meth:`.Adapter._get_data`, the following happens:
1. If only one data entry was received so far, we can't interpolate and simply return the available data. Otherwise...
1. Calculate ``dt`` as the relative position of ``time`` in the available data interval (in range [0, 1])
1. Interpolate and return the data
#. If only one data entry was received so far, we can't interpolate and simply return the available data. Otherwise...
#. Calculate ``dt`` as the relative position of ``time`` in the available data interval (in range [0, 1])
#. Interpolate and return the data
Note that, although we use :class:`datetime <datetime.datetime>` when calculating ``dt``, we get a scalar output.
Due to ``dt`` being relative, time units cancel out here.
......@@ -57,10 +57,10 @@ with a live plotting component (:class:`.modules.TimeSeriesView`).
The typical steps in a script are:
1. Instantiate components and adapters (see next example)
2. Create a :class:`.Composition` and initialize it
3. Connect outputs to inputs using the overloaded ``>>`` operator (:meth:`.IOutput.__rshift__`)
4. Run the :class:`.Composition`
#. Instantiate components and adapters (see next example)
#. Create a :class:`.Composition` and initialize it
#. Connect outputs to inputs using the overloaded ``>>`` operator (:meth:`.IOutput.__rshift__`)
#. Run the :class:`.Composition`
Inputs and outputs
------------------
......@@ -143,8 +143,8 @@ As can be seen from the example, components and adapters can be chained using th
This is achieved by:
1. An adapter is an input, and at the same time an output
2. The chained input is returned by `>>` and :meth:`.IOutput.chain`. In case the chained input is an adapter (and thus also an output), it can be immediately reused in a further chaining operation
#. An adapter is an input, and at the same time an output
#. The chained input is returned by `>>` and :meth:`.IOutput.chain`. In case the chained input is an adapter (and thus also an output), it can be immediately reused in a further chaining operation
Logging
-------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment