From 0c72a2f26d49c9bb480cc2c50ce88c48fe3ea118 Mon Sep 17 00:00:00 2001 From: llyyr Date: Tue, 30 Jul 2024 06:24:54 +0530 Subject: [PATCH] TOOLS/stats-conv: silence linter messages --- TOOLS/stats-conv.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/TOOLS/stats-conv.py b/TOOLS/stats-conv.py index a875879720..a1210811b0 100755 --- a/TOOLS/stats-conv.py +++ b/TOOLS/stats-conv.py @@ -38,9 +38,10 @@ Currently, the following event types are supported: class G: events = {} - start = None + start = 0.0 markers = ["o", "s", "t", "d"] curveno = {} + sevents = [] def find_marker(): if len(G.markers) == 0: @@ -50,7 +51,10 @@ def find_marker(): return m class Event: - pass + name = None + vals = [] + type = None + marker = "" def get_event(event, evtype): if event not in G.events: @@ -161,6 +165,6 @@ for e in G.sevents: else: args['pen'] = pg.mkPen(color, width=0) G.curveno[cur] += 1 - n = cur.plot([x for x,y in e.vals], [y for x,y in e.vals], **args) + cur.plot([x for x, _ in e.vals], [y for _, y in e.vals], **args) app.exec()