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

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

Issue 2793903006: Style fix and docstring for the APM QA Python tool (Closed)
Patch Set: _ prefix for internal use functions Created 3 years, 8 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_factory.py
diff --git a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation_factory.py b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation_factory.py
index acb9f076759a13171016d556124ae1bfaf4a24df..62b4c86e07b00725b3cfc71d4b28096e867484e1 100644
--- a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation_factory.py
+++ b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/noise_generation_factory.py
@@ -17,9 +17,9 @@ from . import noise_generation
class NoiseGeneratorFactory(object):
"""Factory class used to instantiate noise generator workers.
- It can be used by instanciating a factory, passing parameters to the
- constructor. These parameters are used to instantiate noise generator
- workers.
+ It can be used by instanciating a factory, passing parameters to the
+ constructor. These parameters are used to instantiate noise generator
+ workers.
"""
def __init__(self, aechen_ir_database_path):
@@ -27,6 +27,9 @@ class NoiseGeneratorFactory(object):
def GetInstance(self, noise_generator_class):
"""Creates an NoiseGenerator instance given a class object.
+
+ Args:
+ noise_generator_class: NoiseGenerator class object (not an instance).
"""
logging.debug(
'factory producing a %s noise generator', noise_generator_class)

Powered by Google App Engine
This is Rietveld 408576698