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
This commit is part of merge request !127. Comments created here will be created in the context of that merge request.
...@@ -78,8 +78,8 @@ File ``src/scale.py``: ...@@ -78,8 +78,8 @@ File ``src/scale.py``:
In :meth:`.Adapter._get_data`, we: In :meth:`.Adapter._get_data`, we:
1. Pull the input for the requested ``time`` #. Pull the input for the requested ``time``
1. Multiply the input by ``scale`` and return the result #. Multiply the input by ``scale`` and return the result
Time-dependent ``TimeInterpolation`` adapter Time-dependent ``TimeInterpolation`` adapter
-------------------------------------------- --------------------------------------------
...@@ -242,9 +242,9 @@ In :meth:`.Adapter._get_data`, we can now do the interpolation whenever data is ...@@ -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: 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... #. 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]) #. Calculate ``dt`` as the relative position of ``time`` in the available data interval (in range [0, 1])
1. Interpolate and return the data #. Interpolate and return the data
Note that, although we use :class:`datetime <datetime.datetime>` when calculating ``dt``, we get a scalar output. 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. Due to ``dt`` being relative, time units cancel out here.
...@@ -57,10 +57,10 @@ with a live plotting component (:class:`.modules.TimeSeriesView`). ...@@ -57,10 +57,10 @@ with a live plotting component (:class:`.modules.TimeSeriesView`).
The typical steps in a script are: The typical steps in a script are:
1. Instantiate components and adapters (see next example) #. Instantiate components and adapters (see next example)
2. Create a :class:`.Composition` and initialize it #. Create a :class:`.Composition` and initialize it
3. Connect outputs to inputs using the overloaded ``>>`` operator (:meth:`.IOutput.__rshift__`) #. Connect outputs to inputs using the overloaded ``>>`` operator (:meth:`.IOutput.__rshift__`)
4. Run the :class:`.Composition` #. Run the :class:`.Composition`
Inputs and outputs Inputs and outputs
------------------ ------------------
...@@ -143,8 +143,8 @@ As can be seen from the example, components and adapters can be chained using th ...@@ -143,8 +143,8 @@ As can be seen from the example, components and adapters can be chained using th
This is achieved by: This is achieved by:
1. An adapter is an input, and at the same time an output #. 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 #. 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 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