diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 0441044..866e8ba 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -19,7 +19,7 @@ class CommandsParameter(Parameter): pass -ThermostatParams = [[ +THERMOSTAT_PARAMETERS = [[ {'name': 'Constant Current', 'type': 'float', 'value': 0, 'step': 0.1, 'limits': (-3, 3), 'siPrefix': True, 'suffix': 'A', 'commands': [f'pwm {ch} i_set {{value}}']}, {'name': 'Temperature PID', 'type': 'bool', 'value': False, 'commands': [f'pwm {ch} pid'], 'payload': ch, @@ -54,8 +54,11 @@ ThermostatParams = [[ ]} ] for ch in range(2)] -params = [CommandsParameter.create(name='Thermostat Params 0', type='group', children=ThermostatParams[0]), - CommandsParameter.create(name='Thermostat Params 1', type='group', children=ThermostatParams[1])] + +params = [ + CommandsParameter.create(name='Thermostat Params 0', type='group', children=THERMOSTAT_PARAMETERS[0]), + CommandsParameter.create(name='Thermostat Params 1', type='group', children=THERMOSTAT_PARAMETERS[1]), +] def get_argparser():