Add script that executes layer2 detection on all smarthome traces (traces where one...
[pingpong.git] / Code / Projects / SmartPlugDetector / src / main / java / edu / uci / iotproject / evaluation / DetectionResultsAnalyzer.java
index 3fdacb348a225c3ff0f6c417c01fdc2bca14d0d5..51f4623b09ca611b6531aab6654eaea1e9b0b676 100644 (file)
@@ -42,6 +42,10 @@ public class DetectionResultsAnalyzer {
         try (BufferedReader br = new BufferedReader(new FileReader(detectionOutputFile))) {
             String s;
             while ((s = br.readLine()) != null) {
+                if (s.startsWith("#")) {
+                    // Ignore comments.
+                    continue;
+                }
                 detectedEvents.add(UserAction.fromString(s));
             }
         }