From 40eec9af0b6c088860cbc1de25e3ed0502a650ca Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Fri, 23 Jun 2023 08:42:44 +0200 Subject: [PATCH] Implements rs_check --- ohmpi/hardware_components/abstract_hardware_components.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ohmpi/hardware_components/abstract_hardware_components.py b/ohmpi/hardware_components/abstract_hardware_components.py index 0f517866..c8d8b935 100644 --- a/ohmpi/hardware_components/abstract_hardware_components.py +++ b/ohmpi/hardware_components/abstract_hardware_components.py @@ -167,10 +167,9 @@ 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.warning('Bypassing switching check') # TODO: change to debug + self.exec_logger.debugg(f'Bypassing :{bypass_check}') 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 -- GitLab