diff --git a/hardware_components/abstract_hardware_components.py b/hardware_components/abstract_hardware_components.py index c8ca0b3712bce2767423b726452c2a2e6c8727df..76550cd3298fccc325e8e9fb35fd7d21522d63d6 100644 --- a/hardware_components/abstract_hardware_components.py +++ b/hardware_components/abstract_hardware_components.py @@ -1,7 +1,6 @@ from abc import ABC, abstractmethod import numpy as np -import json from OhmPi.logging_setup import create_stdout_logger import time @@ -97,7 +96,7 @@ class MuxAbstract(ABC): @abstractmethod def switch_one(self, elec=None, role=None, state=None): - pass + self.exec_logger.debug(f'switching {state} electrode {elec} with role {role}') def test(self, elec_dict, activation_time=1.): """Method to test the multiplexer. @@ -115,10 +114,8 @@ class MuxAbstract(ABC): for role in elec_dict.keys(): for elec in elec_dict[role]: self.switch_one(elec, role, 'on') - self.exec_logger.debug(f'electrode: {elec} activated.') time.sleep(activation_time) self.switch_one(elec, role, 'off') - self.exec_logger.debug(f'electrode: {elec} deactivated.') time.sleep(activation_time) self.exec_logger.debug('Test finished.') diff --git a/hardware_components/mux_2024_rev_0_0.py b/hardware_components/mux_2024_rev_0_0.py index 6818f03a0bfc61bcc4520aba63b025c1743b2cda..18063456cc0e6a63714e4c8f6c2da8e8e690a5d5 100644 --- a/hardware_components/mux_2024_rev_0_0.py +++ b/hardware_components/mux_2024_rev_0_0.py @@ -122,7 +122,6 @@ class Mux(MuxAbstract): pin_enable.value = state d = self.addresses[elec, role] - self.exec_logger.debug(f'switching {state} electrode {elec} with role {role}') if state == 'on': set_relay_state(self._mcp[d['MCP']], d['MCP_GPIO'], True) if state == 'off':