diff --git a/ohmpi/hardware_components/abstract_hardware_components.py b/ohmpi/hardware_components/abstract_hardware_components.py index 7a158534f81491956513f333890269c96ba8fa40..0f517866eee1e86cb3fd2c36be1779e175b36192 100644 --- a/ohmpi/hardware_components/abstract_hardware_components.py +++ b/ohmpi/hardware_components/abstract_hardware_components.py @@ -167,9 +167,10 @@ class MuxAbstract(ABC): # check that none of M or N are the same as A or B # as to prevent burning the MN part which cannot take # the full voltage of the DPS + self.exec_logger.warning(f'Bypassing :{bypass_check}') # TODO: change to debug if 'A' in elec_dict.keys() and 'B' in elec_dict.keys() and 'M' in elec_dict.keys() and 'N' in elec_dict.keys(): if bypass_check: - self.exec_logger.debug('Bypassing switching check') + self.exec_logger.warning('Bypassing switching check') # TODO: change to debug elif (np.in1d(elec_dict['M'], elec_dict['A']).any() # noqa or np.in1d(elec_dict['M'], elec_dict['B']).any() # noqa or np.in1d(elec_dict['N'], elec_dict['A']).any() # noqa @@ -179,8 +180,6 @@ class MuxAbstract(ABC): self.barrier.abort() status = False return status - elif bypass_check: - self.exec_logger.debug('Bypassing switching check') # if all ok, then wait for the barrier to open, then switch the electrodes self.exec_logger.debug(f'{self.board_id} waiting to switch.')