From 1afe70bd6f6f3eff98f8d0d62e2feaa74e1e1de9 Mon Sep 17 00:00:00 2001 From: Olaf Hartwig <olaf.hartwig@obspm.fr> Date: Thu, 25 Aug 2022 08:35:07 +0200 Subject: [PATCH] Fix pylint error --- lisainstrument/noises.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisainstrument/noises.py b/lisainstrument/noises.py index 6dc09cb..5507df9 100644 --- a/lisainstrument/noises.py +++ b/lisainstrument/noises.py @@ -160,7 +160,7 @@ def laser(fs, size, asd=30, fknee=2E-3, shape='white+infrared'): if shape == 'white': return white(fs, size, asd) - elif shape == 'white+infrared': + if shape == 'white+infrared': return white(fs, size, asd) + infrared(fs, size, asd * fknee**2) raise ValueError(f"invalid laser noise spectral shape '{shape}'") -- GitLab