mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-24 01:41:39 +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):
|
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."
|
||||||
|
Loading…
Reference in New Issue
Block a user