fixed pylint warnings

Change-Id: Ibb3da77e9a53b7293a280659defc029416e30e3b
This commit is contained in:
Alexander Zaft
2022-11-08 07:53:34 +01:00
committed by Enrico Faulhaber
parent a928c95efd
commit c1eb764b09
26 changed files with 59 additions and 50 deletions

View File

@@ -188,7 +188,7 @@ class PpmsSim:
else:
self.status.pos = 5
self.st = sum([self.status[i] << (i * 4) for i in range(4)])
self.st = sum(self.status[i] << (i * 4) for i in range(4))
self.r1 = self.t * 0.1
self.i1 = self.t % 10.0
self.r2 = 1000 / self.t

View File

@@ -144,7 +144,7 @@ class CalCurve:
try:
parser = cls(**args)
with open(filename) as f:
with open(filename, encoding='utf-8') as f:
for line in f:
parser.parse(line)
except Exception as e: