Skip to content

Commit

Permalink
Remove timeline report in dynamic simulation (#341)
Browse files Browse the repository at this point in the history
Signed-off-by: lisrte <[email protected]>
  • Loading branch information
Lisrte authored Apr 15, 2024
1 parent 6dcc347 commit 23add3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 23add3a

Please sign in to comment.