From c4d0cfcad19a789b449ae2f88bd5d9927546a222 Mon Sep 17 00:00:00 2001 From: lisrte Date: Thu, 11 Apr 2024 10:52:43 +0200 Subject: [PATCH] Remove timeline report in dynamic simulation Signed-off-by: lisrte --- .../main/java/com/powsybl/dynawaltz/DynaWaltzProvider.java | 7 ++----- .../main/java/com/powsybl/dynawaltz/DynawaltzReports.java | 6 ------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzProvider.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzProvider.java index 78745992d..ccdbcb63a 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzProvider.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzProvider.java @@ -255,11 +255,8 @@ private void setDumpFile(Path outputsFolder, Path dumpFileFolder, Path fileName) private void setTimeline(Path outputsFolder) { Path timelineFile = outputsFolder.resolve(DYNAWO_TIMELINE_FOLDER).resolve(TIMELINE_FILENAME); if (Files.exists(timelineFile)) { - ReportNode timelineReportNode = DynawaltzReports.createDynaWaltzTimelineReportNode(reportNode); - new CsvTimeLineParser().parse(timelineFile).forEach(e -> { - CommonReports.reportTimelineEntry(timelineReportNode, e); - timeline.add(new TimelineEvent(e.time(), e.modelName(), e.message())); - }); + new CsvTimeLineParser().parse(timelineFile).forEach(e -> + timeline.add(new TimelineEvent(e.time(), e.modelName(), e.message()))); } else { LOGGER.warn("Timeline file not found"); } diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynawaltzReports.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynawaltzReports.java index 186c3513c..f2e65a340 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynawaltzReports.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynawaltzReports.java @@ -31,12 +31,6 @@ public static ReportNode createDynaWaltzContextReportNode(ReportNode reportNode) .add(); } - public static ReportNode createDynaWaltzTimelineReportNode(ReportNode reportNode) { - return reportNode.newReportNode() - .withMessageTemplate("dynawaltzTimeline", "Dynawaltz Timeline") - .add(); - } - public static void reportDuplicateStaticId(ReportNode reportNode, String duplicateId, String modelName, String dynamicId) { reportNode.newReportNode() .withMessageTemplate("duplicateStaticId", "Duplicate static id found: ${duplicateId} -> model ${modelName} ${dynamicId} will be skipped")