Skip to content

Commit 8fdeab5

Browse files
committed
lint
1 parent a43a926 commit 8fdeab5

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

adafruit_max31855.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,13 @@ def reference_temperature(self):
9292
return self._read(True) * 0.0625
9393

9494
@property
95-
def temperatureNIST(self):
95+
def temperature_NIST(self):
9696
"""
9797
Thermocouple temperature in degrees Celsius, computed using
9898
raw voltages and NIST approximation for Type K, see:
9999
https://srdata.nist.gov/its90/download/type_k.tab
100100
"""
101+
# pylint: disable=bad-whitespace, bad-continuation, invalid-name
101102
# temperature of remote thermocouple junction
102103
TR = self.temperature
103104
# temperature of device (cold junction)
@@ -108,14 +109,14 @@ def temperatureNIST(self):
108109
if TAMB >= 0:
109110
VREF =(-0.176004136860E-01 +
110111
0.389212049750E-01 * TAMB +
111-
0.185587700320E-04 * pow(TAMB,2) +
112-
-0.994575928740E-07 * pow(TAMB,3) +
113-
0.318409457190E-09 * pow(TAMB,4) +
114-
-0.560728448890E-12 * pow(TAMB,5) +
115-
0.560750590590E-15 * pow(TAMB,6) +
116-
-0.320207200030E-18 * pow(TAMB,7) +
117-
0.971511471520E-22 * pow(TAMB,8) +
118-
-0.121047212750E-25 * pow(TAMB,9) +
112+
0.185587700320E-04 * pow(TAMB, 2) +
113+
-0.994575928740E-07 * pow(TAMB, 3) +
114+
0.318409457190E-09 * pow(TAMB, 4) +
115+
-0.560728448890E-12 * pow(TAMB, 5) +
116+
0.560750590590E-15 * pow(TAMB, 6) +
117+
-0.320207200030E-18 * pow(TAMB, 7) +
118+
0.971511471520E-22 * pow(TAMB, 8) +
119+
-0.121047212750E-25 * pow(TAMB, 9) +
119120
0.1185976 * exp(-0.1183432E-03 * pow(TAMB - 0.1269686E+03, 2)))
120121
else:
121122
VREF =( 0.394501280250E-01 * TAMB +

0 commit comments

Comments
 (0)