mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
parent
fff550b233
commit
dbb588a1cf
@ -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