updated db_to_freq docstring

Former-commit-id: 9b30da4dec
This commit is contained in:
Joshua Chin 2015-06-17 12:24:23 -04:00
parent fff550b233
commit dbb588a1cf

View File

@ -128,6 +128,10 @@ def get_frequency_list(lang, wordlist='combined', match_cutoff=30):
def dB_to_freq(dB): def dB_to_freq(dB):
"""
Converts decibels to freequency.
If the decibels is positive, throws a ValueError
"""
if dB > 0: if dB > 0:
raise ValueError( raise ValueError(
"A frequency cannot be a positive number of decibels." "A frequency cannot be a positive number of decibels."