Skip to content

Commit 75cc238

Browse files
author
Sourcery AI
committed
'Refactored by Sourcery'
1 parent c4828b6 commit 75cc238

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)