Skip to content

Commit cdd59a1

Browse files
committed
Linting.
1 parent 12a7d6e commit cdd59a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_bme280.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,15 @@ def _read_temperature(self):
106106

107107
@property
108108
def dew_point(self):
109-
"""The dew point in Celsius using the Magnus forumula. Constants from Sontag, 1990."""
109+
# pylint: disable=invalid-name
110+
# Disable: c is a constant used in the Magnus formula
111+
"""The dew point in Celsius using the Magnus formula. Constants from Sontag, 1990."""
110112
b = 17.62
111113
c = 243.12
112114
gamma = (b * self.temperature /(c + self.temperature)) + math.log(self.humidity / 100.0)
113115
dewpoint = (c * gamma) / (b - gamma)
114116
return dewpoint
115-
117+
# pylint: enable=invalid-name
116118

117119
@property
118120
def temperature(self):

0 commit comments

Comments
 (0)