Numerous fixes for Python scripts

This commit is contained in:
2023-10-12 11:57:31 +02:00
parent 8224e97abe
commit d2761ce060
7 changed files with 51 additions and 106 deletions

View File

@@ -621,8 +621,7 @@ def generatePlots(pathToTrace):
if(windowSize == 0):
outputFiles = "No output file created. Check WindowSize and EnableWindowing configs."
else:
cursor.execute(" SELECT TraceEnd FROM GeneralInfo ")
traceEnd = float(cursor.fetchone()[0])
traceEnd = getTraceEndTime(connection)
steps = int(ceil(traceEnd/windowSize))
for p in plots:
outputFiles += p(connection, pathToTrace, steps)