-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot.py
More file actions
33 lines (33 loc) · 1.73 KB
/
plot.py
File metadata and controls
33 lines (33 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from dataAnalysis import initDataFiles,printMemUsage
import dataAnalysis.configLoader as configLoader
from dataAnalysis.plotter import plotterClass
import time
printMemUsage()
config = configLoader.loadConfig()
dataFiles = initDataFiles(config)
for dataFile in dataFiles:
start = time.time()
pathToOutput = f"{config["pathToOutput"]}{dataFile.fileName}/"
plotter = plotterClass(dataFile,config,pathToOutput,saveToSharedPdf=True)
#plotter.crossTalk().CuttingComparison()
#plotter.crossTalk().CuttingComparison({"layers":[3]})
#plotter.crossTalk().CuttingComparison({"layers":[2]})
#plotter.crossTalk().CuttingComparison({"layers":[1]})
#plotter.simple().rowHistogram(excludeCrossTalk=True)
#plotter.simple().rowHistogram({"layers":[1]},excludeCrossTalk=True)
#plotter.simple().rowHistogram({"layers":[2]},excludeCrossTalk=True)
#plotter.simple().rowHistogram({"layers":[3]},excludeCrossTalk=True)
plotter.simple().Hit_VoltageHistogram(excludeCrossTalk=False)
plotter.simple().Hit_VoltageHistogram(excludeCrossTalk=True)
plotter.simple().Hit_VoltageHistogram({"layers":[1]},excludeCrossTalk=True)
plotter.simple().Hit_VoltageHistogram({"layers":[2]},excludeCrossTalk=True)
plotter.simple().Hit_VoltageHistogram({"layers":[3]},excludeCrossTalk=True)
plotter.simple().ToTHistogram(excludeCrossTalk=False)
plotter.simple().ToTHistogram(excludeCrossTalk=True)
plotter.simple().ToTHistogram({"layers":[1]},excludeCrossTalk=True)
plotter.simple().ToTHistogram({"layers":[2]},excludeCrossTalk=True)
plotter.simple().ToTHistogram({"layers":[3]},excludeCrossTalk=True)
plotter.savePDF()
end = time.time()
print(f"Time taken for {dataFile.fileName}: {end - start:.2f}")
printMemUsage()