Commit 9a6689e4 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Uses HARDWARECONFIG in ohmpi.py

Showing with 3 additions and 2 deletions
+3 -2
......@@ -23,7 +23,7 @@ from termcolor import colored
from logging import DEBUG
from ohmpi.utils import get_platform
from ohmpi.logging_setup import setup_loggers
from ohmpi.config import MQTT_CONTROL_CONFIG, OHMPI_CONFIG, EXEC_LOGGING_CONFIG
from ohmpi.config import MQTT_CONTROL_CONFIG, OHMPI_CONFIG, EXEC_LOGGING_CONFIG, HARDWARE_CONFIG
import ohmpi.deprecated as deprecated
from ohmpi.hardware_system import OhmPiHardware
......@@ -77,8 +77,9 @@ class OhmPi(object):
print(msg)
# read in hardware parameters (config.py)
self._hw = OhmPiHardware(**{'exec_logger': self.exec_logger, 'data_logger': self.data_logger,
HARDWARE_CONFIG.update({'exec_logger': self.exec_logger, 'data_logger': self.data_logger,
'soh_logger': self.soh_logger})
self._hw = OhmPiHardware(**HARDWARE_CONFIG)
self.exec_logger.info('Hardware configured...')
# default acquisition settings
self.settings = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment