[bugfix] no warning for volt_lvl = -1

This commit is contained in:
Marcel Paffrath 2023-02-17 16:14:59 +01:00
parent 305ab25ab2
commit 9d9ced7c83

View File

@ -1128,7 +1128,7 @@ class StationQC(object):
if message == 'OK': if message == 'OK':
self.status_ok(key) self.status_ok(key)
continue continue
if volt_lvl > 1: if volt_lvl != 1:
n_occurrences = self.calc_occurrences(ind_array) n_occurrences = self.calc_occurrences(ind_array)
self.warn(key=key, self.warn(key=key,
detailed_message=f'Trace {trace.get_id()}: ' detailed_message=f'Trace {trace.get_id()}: '