bug to prev bug

This commit is contained in:
alexmadison 2022-03-01 14:00:47 +01:00
parent 18f84bc652
commit 8268379572
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,7 @@ Use -exclude='regex' to specify signals to exclude (or -ex).""")
time = unique_times[np.argwhere((unique_times-time) < 0)[-1]] time = unique_times[np.argwhere((unique_times-time) < 0)[-1]]
except: except:
print(f"Couldn't find an appropriate time for assert {a}") print(f"Couldn't find an appropriate time for assert {a}")
continue
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")
@ -239,6 +240,7 @@ Use -exclude='regex' to specify signals to exclude (or -ex).""")
time = unique_times[np.argwhere((unique_times-time) < 0)[-1]] time = unique_times[np.argwhere((unique_times-time) < 0)[-1]]
except: except:
print(f"Couldn't find an appropriate time for echo {a}") print(f"Couldn't find an appropriate time for echo {a}")
continue
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)