From 9b30da4dec48798caa835c554497ddc2343c97f1 Mon Sep 17 00:00:00 2001 From: Joshua Chin Date: Wed, 17 Jun 2015 12:24:23 -0400 Subject: [PATCH] updated db_to_freq docstring --- wordfreq/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wordfreq/__init__.py b/wordfreq/__init__.py index 1966109..7f4a4b4 100644 --- a/wordfreq/__init__.py +++ b/wordfreq/__init__.py @@ -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."