From 136b67cbf44c0e83dc890058a7f20fb40c94bc9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Sat, 25 Feb 2023 11:07:12 +0100 Subject: [PATCH] fix invalid syntax --- control/fixed_duty.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/control/fixed_duty.py b/control/fixed_duty.py index e3c53ff..6040030 100644 --- a/control/fixed_duty.py +++ b/control/fixed_duty.py @@ -9,9 +9,9 @@ class FixedDutyCycle(controllers.Controller): self.set_duty(kwargs.pop('duty_perc')) operator = kwargs.pop('operator', '<') functions = { - '<': lambda (a, b): a < b, - '>': lambda (a, b): a > b, - '==': lambda (a, b): a == b, + '<': lambda a, b: a < b, + '>': lambda a, b: a > b, + '==': lambda a, b: a == b, } self.operator = functions[operator] super().__init__(*args, **kwargs)