We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12a7d6e commit cdd59a1Copy full SHA for cdd59a1
adafruit_bme280.py
@@ -106,13 +106,15 @@ def _read_temperature(self):
106
107
@property
108
def dew_point(self):
109
- """The dew point in Celsius using the Magnus forumula. Constants from Sontag, 1990."""
+ # 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."""
112
b = 17.62
113
c = 243.12
114
gamma = (b * self.temperature /(c + self.temperature)) + math.log(self.humidity / 100.0)
115
dewpoint = (c * gamma) / (b - gamma)
116
return dewpoint
-
117
+ # pylint: enable=invalid-name
118
119
120
def temperature(self):
0 commit comments