diff --git a/lisainstrument/noises.py b/lisainstrument/noises.py index 6dc09cb8cfa4b8ef88fa816ec417e952c38ab494..5507df9e27dd974def3386a075dc94b57410d26d 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}'")