Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions plotgen.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
#

from __future__ import print_function
import sys

fi = open("/tmp/_")
fi = open(sys.argv[1])
fg = open("/tmp/_g", "w")

fg.write("#\n")
Expand All @@ -61,6 +62,7 @@ def commit(self, fg, title):
fg.write(i + "\n")

now = 0.0
epoch = 0.0

class simpll(object):
def __init__(self):
Expand Down Expand Up @@ -113,9 +115,11 @@ def data(self, ll):
continue
ll = l.split()
if ll[0] == "Now":
now = float(ll[1]) - 1e6
if epoch == 0.0:
epoch = float(ll[1])
now = float(ll[1]) - epoch
continue
if ll[0] == "SIMPLL":
if ll[0] == "SIMPLL" or ll[0] == "PLL":
p_simpll.data(ll)
continue
if ll[0] == "Combine":
Expand Down