TOOLS/stats-conv: silence linter messages

This commit is contained in:
llyyr 2024-07-30 06:24:54 +05:30 committed by Kacper Michajłow
parent f1cd59ba92
commit 0c72a2f26d
1 changed files with 7 additions and 3 deletions

View File

@ -38,9 +38,10 @@ Currently, the following event types are supported:
class G: class G:
events = {} events = {}
start = None start = 0.0
markers = ["o", "s", "t", "d"] markers = ["o", "s", "t", "d"]
curveno = {} curveno = {}
sevents = []
def find_marker(): def find_marker():
if len(G.markers) == 0: if len(G.markers) == 0:
@ -50,7 +51,10 @@ def find_marker():
return m return m
class Event: class Event:
pass name = None
vals = []
type = None
marker = ""
def get_event(event, evtype): def get_event(event, evtype):
if event not in G.events: if event not in G.events:
@ -161,6 +165,6 @@ for e in G.sevents:
else: else:
args['pen'] = pg.mkPen(color, width=0) args['pen'] = pg.mkPen(color, width=0)
G.curveno[cur] += 1 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() app.exec()