Skip to content

Commit 30c3978

Browse files
committed
fix: codestyle
1 parent 83c6320 commit 30c3978

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

basil/HL/sensirion_sht45.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def init(self):
3939

4040
try:
4141
import crcmod
42+
4243
self.crc_func = crcmod.mkCrcFun(0x131, initCrc=0xFF, rev=False, xorOut=0x00)
4344
except ImportError:
4445
logger.warning("You have to install the package 'crcmod'! Transmission errors will not be caught.")
@@ -130,6 +131,7 @@ def to_dew_point(self, T, RH):
130131
http://irtfweb.ifa.hawaii.edu/~tcs3/tcs3/Misc/Dewpoint_Calculation_Humidity_Sensor_E.pdf
131132
"""
132133
import numpy as np
134+
133135
if RH == 0:
134136
RH = self._to_humidity((0, 1)) # lowest non-zero rel. humidity
135137
H = (np.log10(RH) - 2) / 0.4343 + (17.62 * T) / (243.12 + T)

0 commit comments

Comments
 (0)