From b4c60247aa19858634cb56eacae9bbf82b0c0e5d Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Fri, 28 Jan 2022 15:39:11 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- soundscapy/analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soundscapy/analysis.py b/soundscapy/analysis.py index 5fa093de..b751de7f 100644 --- a/soundscapy/analysis.py +++ b/soundscapy/analysis.py @@ -157,7 +157,7 @@ def loudness_from_wav( # Input sanity! methodlist = ["time_varying", "stationary"] if method not in methodlist: - if method in ["stationary_levels", "Stationary_Levels"]: + if method in {"stationary_levels", "Stationary_Levels"}: raise ValueError( "Calculating loudness from pre-calculated levels has its own method! (or it soon will...)" )