Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py

Issue 2718063003: POLQA evaluation score. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py
diff --git a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py
index a6a8a0653c7800e3efda9be678565dc278041605..6af6eb6f1a061df7137a995a424d08d27879c204 100644
--- a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py
+++ b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation.py
@@ -32,6 +32,7 @@ except ImportError:
sys.exit(1)
from . import data_access
+from . import exceptions
from . import signal_processing
class NoiseGenerator(object):
@@ -319,7 +320,7 @@ class EnvironmentalNoiseGenerator(NoiseGenerator):
self._NOISE_TRACKS_PATH, noise_track_filename)
if not os.path.exists(noise_track_filepath):
logging.error('cannot find the <%s> noise track', noise_track_filename)
- continue
+ raise exceptions.FileNotFoundError()
noise_signal = signal_processing.SignalProcessingUtils.load_wav(
noise_track_filepath)

Powered by Google App Engine
This is Rietveld 408576698