'numpy>=1.6.2',
'mutagen',
'pil',
+ 'scipy',
],
platforms=['OS Independent'],
license='Gnu Public License V2',
container.add_result([specdesc, specdesc_mean, specdesc_median])
- return AnalyzerResultContainer()
+ return container
class AnalyzerResultContainer(object):
- def __init__(self, analyzer_results = []):
+ def __init__(self, analyzer_results=None):
+ if analyzer_results is None:
+ analyzer_results = []
self.results = analyzer_results
def __getitem__(self, i):
"""Return the final result of the analysis performed over the data passed by
repeatedly calling process()"""
+ def results():
+ """Return the final results 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...)"""