updated db_to_freq docstring

This commit is contained in:
Joshua Chin 2015-06-17 12:24:23 -04:00
parent 7e808bf7c1
commit 9b30da4dec

View File

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