From c87b655d09bc9969393b4f174ac257069bb1f204 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Wed, 11 Oct 2023 00:45:13 +0200 Subject: [PATCH] Improve code consistency --- ohmpi/hardware_components/raspberry_pi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ohmpi/hardware_components/raspberry_pi.py b/ohmpi/hardware_components/raspberry_pi.py index e4ba6b4e..a910758b 100644 --- a/ohmpi/hardware_components/raspberry_pi.py +++ b/ohmpi/hardware_components/raspberry_pi.py @@ -25,8 +25,8 @@ SPECS = {'model': {'default': os.path.basename(__file__).rstrip('.py')}, class Ctl(CtlAbstract): def __init__(self, **kwargs): if 'model' not in kwargs.keys(): - for key in SPECS['tx'].keys(): - kwargs = enforce_specs(kwargs, SPECS['tx'], key) + for key in SPECS.keys(): + kwargs = enforce_specs(kwargs, SPECS, key) subclass_init = False else: subclass_init = True -- GitLab