From 1ac6ad360af2531f1a44828b0b50bf9d29874479 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Mon, 15 Sep 2014 12:28:19 +0200 Subject: [PATCH] feature(analyzer.core): Add a function to display ids contains in analyzer results --- timeside/analyzer/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/timeside/analyzer/core.py b/timeside/analyzer/core.py index a6f20e6..23954a6 100644 --- a/timeside/analyzer/core.py +++ b/timeside/analyzer/core.py @@ -947,6 +947,9 @@ class AnalyzerResultContainer(dict): if res.id_metadata.id == result_id: return res + def list_id(self): + return [res.id for res in self.values()] + def to_xml(self, output_file=None): import xml.etree.ElementTree as ET -- 2.39.5