diff --git a/dev/test_mb_2024_1_mux_2024.py b/dev/test_mb_2024_1_mux_2024.py index 0f119bb6c35d0ee70277e25fb779d2ed757405cf..8dd2aaa6acf708068e25de2ad24606f93e735341 100644 --- a/dev/test_mb_2024_1_mux_2024.py +++ b/dev/test_mb_2024_1_mux_2024.py @@ -52,9 +52,9 @@ if stand_alone: mux.switch(elec_dict={'A': [1], 'B': [4], 'M': [2], 'N': [3]}, state='off') print(f'Resistance: {voltage / current :.2f} ohm, voltage: {voltage:.2f} mV, current: {current:.2f} mA') mux.reset() - mux.test({'A': [i for i in range(1, 9)], 'B': [i for i in range(1, 9)], - 'M': [i for i in range(1, 9)], 'N': [i for i in range(1, 9)]}, activation_time=.1) - mux.reset() + # mux.test({'A': [i for i in range(1, 9)], 'B': [i for i in range(1, 9)], + # 'M': [i for i in range(1, 9)], 'N': [i for i in range(1, 9)]}, activation_time=.1) + # mux.reset() # mux as part of a OhmPiHardware system if part_of_hardware_system: @@ -80,7 +80,7 @@ if within_ohmpi: k = OhmPi() # A, B, M, N = (32, 29, 31, 30) k.reset_mux() - k.test_mux_one_relay(mux_id='mux_03') + # k.test_mux(mux_id='mux_03') # k._hw.switch_mux([A, B, M, N], state='on') # k._hw.vab_square_wave(12.,1., cycles=2) # k._hw.switch_mux([A, B, M, N], state='off') diff --git a/ohmpi/hardware_components/raspberry_pi.py b/ohmpi/hardware_components/raspberry_pi.py index a910758b222aab95e8c3c2547cee343d8ee4d750..f2a59642824a9869d1cb4e7b23f437e278e2a86a 100644 --- a/ohmpi/hardware_components/raspberry_pi.py +++ b/ohmpi/hardware_components/raspberry_pi.py @@ -34,7 +34,7 @@ class Ctl(CtlAbstract): super().__init__(**kwargs) self.interfaces = dict() - warnings.filterwarnings("error") # to filter out adafruit warning about setting I2C frequency + # warnings.filterwarnings("error") # to filter out adafruit warning about setting I2C frequency # I2C try: self.interfaces['i2c'] = busio.I2C(board.SCL, board.SDA) # noqa