From b8472c8dd0a411e8615534a784bae91f755c81f1 Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Wed, 30 Sep 2020 21:23:23 +0200 Subject: [PATCH] Bugfix: elif chain for scenarios --- esbo_etc/classes/Entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esbo_etc/classes/Entry.py b/esbo_etc/classes/Entry.py index 339043a..90d3ea6 100644 --- a/esbo_etc/classes/Entry.py +++ b/esbo_etc/classes/Entry.py @@ -81,7 +81,7 @@ class Entry(object): "' but got no unit and cannot convert '" + attr + "' to a numeric value." else: return "Expected parameter '" + name + "' with unit '" + unit.to_string() + "' but got no unit." - if not attr.unit.is_equivalent(unit): + elif not attr.unit.is_equivalent(unit): if unit == u.K and attr.unit == u.Celsius: setattr(self, name, attr.to(unit, equivalencies=u.temperature())) setattr(self, name + '_unit', unit.to_string())