Skip to content

Commit db6e364

Browse files
Merge pull request #20 from MitchellAcoustics/sourcery/spectral-slope-functions
Spectral slope functions (Sourcery refactored)
2 parents 3172c63 + b4c6024 commit db6e364

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

soundscapy/analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def loudness_from_wav(
157157
# Input sanity!
158158
methodlist = ["time_varying", "stationary"]
159159
if method not in methodlist:
160-
if method in ["stationary_levels", "Stationary_Levels"]:
160+
if method in {"stationary_levels", "Stationary_Levels"}:
161161
raise ValueError(
162162
"Calculating loudness from pre-calculated levels has its own method! (or it soon will...)"
163163
)

0 commit comments

Comments
 (0)