mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
updated db_to_freq docstring
This commit is contained in:
parent
7e808bf7c1
commit
9b30da4dec
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user