Skip to content
Snippets Groups Projects
Commit 9b9f9d7f authored by Olaf Hartwig's avatar Olaf Hartwig Committed by Olaf Hartwig
Browse files

Fix pylint error

parent 71797190
No related branches found
No related tags found
1 merge request!124Resolve "Add parameter to disable low-frequency component of laser noise"
...@@ -160,7 +160,7 @@ def laser(fs, size, asd=30, fknee=2E-3, shape='white+infrared'): ...@@ -160,7 +160,7 @@ def laser(fs, size, asd=30, fknee=2E-3, shape='white+infrared'):
if shape == 'white': if shape == 'white':
return white(fs, size, asd) return white(fs, size, asd)
elif shape == 'white+infrared': if shape == 'white+infrared':
return white(fs, size, asd) + infrared(fs, size, asd * fknee**2) return white(fs, size, asd) + infrared(fs, size, asd * fknee**2)
raise ValueError(f"invalid laser noise spectral shape '{shape}'") raise ValueError(f"invalid laser noise spectral shape '{shape}'")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment