Compare commits
No commits in common. "18f84bc652dd3367d9372416abd3de59c4715540" and "0a8496d4f7e63d1658b684bc4d2886f2c8c393b0" have entirely different histories.
18f84bc652
...
0a8496d4f7
@ -64,7 +64,7 @@ Use -exclude='regex' to specify signals to exclude (or -ex).""")
|
|||||||
for arg in argv:
|
for arg in argv:
|
||||||
r = re.findall(r'-t1=(\d+)', arg)
|
r = re.findall(r'-t1=(\d+)', arg)
|
||||||
if len(r) >= 1:
|
if len(r) >= 1:
|
||||||
print(f"Filtering by end time t1 = {r[0]}")
|
print(f"Filtering by start time t0 = {r[0]}")
|
||||||
entries = [e for e in entries if int(e[0]) <= int(r[0])]
|
entries = [e for e in entries if int(e[0]) <= int(r[0])]
|
||||||
|
|
||||||
|
|
||||||
@ -222,10 +222,7 @@ Use -exclude='regex' to specify signals to exclude (or -ex).""")
|
|||||||
print(a)
|
print(a)
|
||||||
time = int(a[0])
|
time = int(a[0])
|
||||||
if not time in unique_times:
|
if not time in unique_times:
|
||||||
try:
|
|
||||||
time = unique_times[np.argwhere((unique_times-time) < 0)[-1]]
|
time = unique_times[np.argwhere((unique_times-time) < 0)[-1]]
|
||||||
except:
|
|
||||||
print(f"Couldn't find an appropriate time for assert {a}")
|
|
||||||
index = time_to_index(time)
|
index = time_to_index(time)
|
||||||
ax.axvline(index+0.5, c = "red", lw = 2)
|
ax.axvline(index+0.5, c = "red", lw = 2)
|
||||||
ax.text(index+0.5, -1, a[1], rotation = 90, ha = "center", va = "bottom", c = "red")
|
ax.text(index+0.5, -1, a[1], rotation = 90, ha = "center", va = "bottom", c = "red")
|
||||||
@ -235,10 +232,7 @@ Use -exclude='regex' to specify signals to exclude (or -ex).""")
|
|||||||
for a in echoes:
|
for a in echoes:
|
||||||
time = int(a[0])
|
time = int(a[0])
|
||||||
if not time in unique_times:
|
if not time in unique_times:
|
||||||
try:
|
|
||||||
time = unique_times[np.argwhere((unique_times-time) < 0)[-1]]
|
time = unique_times[np.argwhere((unique_times-time) < 0)[-1]]
|
||||||
except:
|
|
||||||
print(f"Couldn't find an appropriate time for echo {a}")
|
|
||||||
index = time_to_index(time)
|
index = time_to_index(time)
|
||||||
c = "xkcd:bright purple"
|
c = "xkcd:bright purple"
|
||||||
ax.axvline(index+0.5, c = c, lw = 2)
|
ax.axvline(index+0.5, c = c, lw = 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user