Compare commits

...

2 Commits

Author SHA1 Message Date
Cal W
9c8c01f866 remove trigger 2024-10-18 00:08:30 +10:00
Cal W
1519d692d9 Graph all the things 2024-10-18 00:04:28 +10:00

View File

@ -282,7 +282,7 @@ def genGraph(gData: dict, showPlot: bool = True):
lims = []
for label in gData["info"]["pcb-refs"] + ["trigbox"]:
for label in gData["info"]["pcb-refs"]: # + ["trigbox"]:
graphData["plots"].append({
"x": gData["time"]["x2"],
"y": gData["data"]["x2"][label],
@ -300,7 +300,7 @@ def genGraph(gData: dict, showPlot: bool = True):
lims.append(gData["shock-point"][label][1]) # [TODO this but better]
for label, d in [("1 [V]", "G1"),("2 [V]", "G2"), ("4 [V]", "Gauge Trigger")]:
for label, d in [("1 [V]", "G1"),("2 [V]", "G2")]: #, ("4 [V]", "Gauge Trigger")]:
graphData["plots"].append({
"x": gData["time"]["scope"],
"y": gData["data"]["scope"][label],
@ -348,7 +348,7 @@ def genGraph(gData: dict, showPlot: bool = True):
print("Graphing Data")
for shot in loaded_data:
if shot != loaded_data[-2]: continue
#if shot != loaded_data[-2]: continue
genGraph(data[shot], showPlot=False)
# This forces matplotlib to hang until I tell it to close all windows