Fix Python metrics in Trace Analyzer

This commit is contained in:
2025-10-10 15:21:41 +02:00
parent 8dc902cd39
commit 29dc3b1539
4 changed files with 10 additions and 10 deletions

View File

@@ -112,7 +112,7 @@ def maximum_data_rate(connection):
# Backwards compatibility for traces where clkMHz was not yet replaced with tCK
clk = None
try:
clk = 1000000 / memspec.getIntValue("memtimingspec", "tCK")
clk = 1000000 / memspec.jsonMemSpec['memspec']['memtimingspec']['tCK']
except:
clk = memspec.getIntValue("memtimingspec", "clkMhz")

View File

@@ -37,11 +37,14 @@
* Derek Christ
*/
#include "pythoncaller.h"
#include <exception>
#include <iostream>
// Has to come first.
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "pythoncaller.h"
#include <exception>
#include <iostream>
#include <string>
std::string PythonCaller::generatePlots(std::string_view pathToTrace)

View File

@@ -40,11 +40,6 @@
#ifndef PYTHONCALLER_H
#define PYTHONCALLER_H
// Workaround for CMAKE and Python
#ifdef slots
#undef slots
#endif
#include "businessObjects/tracecalculatedmetrics.h"
#include <string>

View File

@@ -36,6 +36,9 @@
* Derek Christ
*/
// Has to come first.
#include <pybind11/embed.h>
#include "traceanalyzer.h"
#include <QApplication>
@@ -46,7 +49,6 @@
#include <csignal>
#include <filesystem>
#include <iostream>
#include <pybind11/embed.h>
int main(int argc, char* argv[])
{