]> git.parisson.com Git - timeside.git/commitdiff
minor api enhancement: add IValueAnalyzer.__str__()
authorOlivier Guilyardi <olivier@samalyse.com>
Wed, 24 Feb 2010 14:34:58 +0000 (14:34 +0000)
committerOlivier Guilyardi <olivier@samalyse.com>
Wed, 24 Feb 2010 14:34:58 +0000 (14:34 +0000)
api.py

diff --git a/api.py b/api.py
index 4ecaa3aa30e65d1243a5a1bcdb6de2e08d74735c..7ceaecf229081d34fd69e70f37440c9a001c5eb6 100644 (file)
--- a/api.py
+++ b/api.py
@@ -197,6 +197,10 @@ class IValueAnalyzer(IAnalyzer):
         """Return the final result of the analysis performed over the data passed by
         repeatedly calling process()"""
 
+    def __str__(self):
+        """Return a human readable string containing both result and unit 
+        ('5.30dB', '4.2s', etc...)"""
+
 class IEffect(IProcessor):
     """Effect processor interface"""