From 7d0f1655d2df08a6948caff7b3cbc69bcf4aaee7 Mon Sep 17 00:00:00 2001 From: drigato Date: Thu, 15 Jan 2015 13:44:48 -0500 Subject: [PATCH] SAAS-539: Analyzer can return values in scientific notation which are not compatible with Airtime --- .../airtime_analyzer/airtime_analyzer/cuepoint_analyzer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_apps/airtime_analyzer/airtime_analyzer/cuepoint_analyzer.py b/python_apps/airtime_analyzer/airtime_analyzer/cuepoint_analyzer.py index 6b461f050..1e1dee6bd 100644 --- a/python_apps/airtime_analyzer/airtime_analyzer/cuepoint_analyzer.py +++ b/python_apps/airtime_analyzer/airtime_analyzer/cuepoint_analyzer.py @@ -32,8 +32,8 @@ class CuePointAnalyzer(Analyzer): # Conver the length into a formatted time string track_length = datetime.timedelta(seconds=metadata['length_seconds']) metadata["length"] = str(track_length) - metadata['cuein'] = silan_results['sound'][0][0] - metadata['cueout'] = silan_results['sound'][0][1] + metadata['cuein'] = format(silan_results['sound'][0][0], 'f') + metadata['cueout'] = format(silan_results['sound'][0][1], 'f') except OSError as e: # silan was not found logging.warn("Failed to run: %s - %s. %s" % (command[0], e.strerror, "Do you have silan installed?"))