@@ -92,12 +92,13 @@ def reference_temperature(self):
92
92
return self ._read (True ) * 0.0625
93
93
94
94
@property
95
- def temperatureNIST (self ):
95
+ def temperature_NIST (self ):
96
96
"""
97
97
Thermocouple temperature in degrees Celsius, computed using
98
98
raw voltages and NIST approximation for Type K, see:
99
99
https://srdata.nist.gov/its90/download/type_k.tab
100
100
"""
101
+ # pylint: disable=bad-whitespace, bad-continuation, invalid-name
101
102
# temperature of remote thermocouple junction
102
103
TR = self .temperature
103
104
# temperature of device (cold junction)
@@ -108,14 +109,14 @@ def temperatureNIST(self):
108
109
if TAMB >= 0 :
109
110
VREF = (- 0.176004136860E-01 +
110
111
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 ) +
119
120
0.1185976 * exp (- 0.1183432E-03 * pow (TAMB - 0.1269686E+03 , 2 )))
120
121
else :
121
122
VREF = ( 0.394501280250E-01 * TAMB +
0 commit comments