eed7081afdaa00e8ec8c59e4ab6dd988a1932b4d
java/com.sap.sailing.windestimation/src/com/sap/sailing/windestimation/integration/IncrementalMstHmmWindEstimationForTrackedRace.java
| ... | ... | @@ -186,9 +186,11 @@ public class IncrementalMstHmmWindEstimationForTrackedRace implements Incrementa |
| 186 | 186 | } |
| 187 | 187 | graphComponents = mstManeuverGraphGenerator.parseGraph(); |
| 188 | 188 | if (logger.isLoggable(Level.FINE)) { |
| 189 | - logger.fine("Exporting the maneuver graph to file after updating it with new maneuver spots for competitor "+competitor); |
|
| 190 | 189 | try { |
| 191 | - MstGraphExportHelper.exportToFile(graphComponents, mstManeuverGraphGenerator.getTransitionProbabilitiesCalculator(), File.createTempFile("maneuverExport_", ".json").getCanonicalPath()); |
|
| 190 | + final String canonicalTmpPath = File.createTempFile("maneuverExport_", ".json").getCanonicalPath(); |
|
| 191 | + logger.fine("Exporting the maneuver graph to file after updating it with new maneuver spots for competitor "+competitor |
|
| 192 | + +"; visualize by running com.sap.sailing.windestimation.lab/python/mst_graph_visualizer_graphviz.py "+canonicalTmpPath+" output.pdf"); |
|
| 193 | + MstGraphExportHelper.exportToFile(graphComponents, mstManeuverGraphGenerator.getTransitionProbabilitiesCalculator(), canonicalTmpPath); |
|
| 192 | 194 | } catch (IOException e) { |
| 193 | 195 | logger.log(Level.WARNING, "Exporting the maneuver graph to file failed", e); |
| 194 | 196 | } |