From 64d7f4d5f6b942956b35aab72e95a88ef05444ba Mon Sep 17 00:00:00 2001 From: Arnaud Watlet <arnaud.watlet@umons.ac.be> Date: Thu, 18 Jan 2024 10:26:20 +0100 Subject: [PATCH] update software doc --- configs/config_example.py | 11 ++++++++--- doc/source/source_rst/software/api.rst | 1 + .../source_rst/software/operations/config.rst | 16 ++++++++-------- .../software/operations/interfaces.rst | 1 + .../source_rst/software/operations/settings.rst | 1 + 5 files changed, 19 insertions(+), 11 deletions(-) diff --git a/configs/config_example.py b/configs/config_example.py index 8c7c5d1d..4ae5a1bd 100644 --- a/configs/config_example.py +++ b/configs/config_example.py @@ -188,10 +188,15 @@ HARDWARE_CONFIG = { } ''' - Dictionnary containing the configuration of the hardware system. THis is where the five modules are declared and assembled together + Dictionary configuring the hardware system. This is where the five modules are declared and assembled together. + + Parameters + ---------- 'ctl' contains informationb related to controller unit with the following keys: - 'model': 'raspberry_pi' only implemented so far - 'id': ID of thje instrument '0001' by default + 'ctl': dict + 'model': string, model type of the controller. Currently only 'raspberry_pi" + 'pwr': dict + 'model': string, model type of the power module. 'pwr_batt', 'pwr_dps5005" ''' # SET THE LOGGING LEVELS, MQTT BROKERS AND MQTT OPTIONS ACCORDING TO YOUR NEEDS diff --git a/doc/source/source_rst/software/api.rst b/doc/source/source_rst/software/api.rst index 0eb77bbb..155b3ff9 100644 --- a/doc/source/source_rst/software/api.rst +++ b/doc/source/source_rst/software/api.rst @@ -1,3 +1,4 @@ +.. _api: API reference ############# diff --git a/doc/source/source_rst/software/operations/config.rst b/doc/source/source_rst/software/operations/config.rst index d4c49cfd..a82c4865 100644 --- a/doc/source/source_rst/software/operations/config.rst +++ b/doc/source/source_rst/software/operations/config.rst @@ -46,12 +46,12 @@ Configuration file structure logging_suffix = '' -The configuration is written in a python file structured in a series of dictionnaries related to: +The configuration is written in a python file structured in a series of dictionaries related to: #. OHMPI_CONFIG: the OhmPi instrument information (id of the instrument and default settings). .. code-block:: python - :caption: OhmPi config + :caption: OHMPI_CONFIG: Dictionary containing basic informations about the OhmPi instrument # OhmPi configuration OHMPI_CONFIG = { @@ -63,9 +63,9 @@ The configuration is written in a python file structured in a series of dictionn #. HARDWARE_CONFIG: the hardware system in which the five different modules 'ctl' (controller), 'tx' (transmitter), 'rx' (receiver), 'mux' (multiplexers), 'pwr' (power). .. code-block:: python - :caption: Dictionary containing the configuration of the hardware system. + :caption: HARDWARE_CONFIG: Dictionary containing configuration of the hardware system and how it is assembled. - r_shunt = 2. + r_shunt = 2. # Value of the shunt resistor in Ohm. HARDWARE_CONFIG = { 'ctl': {'model': 'raspberry_pi'}, # contains informations related to controller unit, 'raspberry_pi' only implemented so far 'pwr': {'model': 'pwr_batt', 'voltage': 12., 'interface_name': 'none'}, @@ -104,7 +104,7 @@ The configuration is written in a python file structured in a series of dictionn #. the logging dictionaries divided in: .. code-block:: python - :caption: EXEC_LOGGING_CONFIG + :caption: EXEC_LOGGING_CONFIG: dictionary configuring how the execution commands are being logged by the system. Useful for debugging. # SET THE LOGGING LEVELS, MQTT BROKERS AND MQTT OPTIONS ACCORDING TO YOUR NEEDS # Execution logging configuration @@ -122,7 +122,7 @@ The configuration is written in a python file structured in a series of dictionn * .. code-block:: python - :caption: DATA_LOGGING_CONFIG + :caption: DATA_LOGGING_CONFIG: Dictionary configuring the data logging capabilities of the system # Data logging configuration DATA_LOGGING_CONFIG = { @@ -135,10 +135,9 @@ The configuration is written in a python file structured in a series of dictionn 'interval': 1 } - * SOH_LOGGING_CONFIG .. code-block:: python - :caption: Dictionary containing the configuration of the hardware system. + :caption: SOH_LOGGING_CONFIG: Dictionary configuring how the state of health of the system is logged # State of Health logging configuration (For a future release) SOH_LOGGING_CONFIG = { 'logging_level': logging.INFO, @@ -152,6 +151,7 @@ The configuration is written in a python file structured in a series of dictionn } + #. the MQTT dictionaries divided in: .. code-block:: python diff --git a/doc/source/source_rst/software/operations/interfaces.rst b/doc/source/source_rst/software/operations/interfaces.rst index 910561a3..86852ffb 100644 --- a/doc/source/source_rst/software/operations/interfaces.rst +++ b/doc/source/source_rst/software/operations/interfaces.rst @@ -1,3 +1,4 @@ +.. _interfaces: Interfaces ********** diff --git a/doc/source/source_rst/software/operations/settings.rst b/doc/source/source_rst/software/operations/settings.rst index 29a6e8d6..5de4b355 100644 --- a/doc/source/source_rst/software/operations/settings.rst +++ b/doc/source/source_rst/software/operations/settings.rst @@ -1,3 +1,4 @@ +.. _settings: Acquisition settings ******************** -- GitLab