From 60b6a6ccddc346d97fcf6a0898245a9eb8fc7104 Mon Sep 17 00:00:00 2001
From: awatlet <arnaud.watlet@umons.ac.be>
Date: Thu, 12 Oct 2023 11:56:53 +0200
Subject: [PATCH] Fixes error for i2c_ext

---
 dev/test_mb_2024_1_mux_2024.py            | 8 ++++----
 ohmpi/hardware_components/raspberry_pi.py | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dev/test_mb_2024_1_mux_2024.py b/dev/test_mb_2024_1_mux_2024.py
index 0f119bb6..8dd2aaa6 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 a910758b..f2a59642 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
-- 
GitLab