remove unneeded parens

This commit is contained in:
d-buchmann
2021-12-02 10:49:52 +01:00
committed by GitHub
parent 190b11b41d
commit cbc9048799

View File

@@ -70,9 +70,9 @@ else:
gas_lower_limit = float(5000) # Bad air quality limit
gas_upper_limit = float(50000) # Good air quality limit
if (gas_reference > gas_upper_limit):
if gas_reference > gas_upper_limit:
gas_reference = gas_upper_limit
if (gas_reference < gas_lower_limit):
if gas_reference < gas_lower_limit:
gas_reference = gas_lower_limit
gas_score = float((0.75/(gas_upper_limit-gas_lower_limit)*gas_reference -(gas_lower_limit*(0.75/(gas_upper_limit-gas_lower_limit))))*100)