From c717e4cb76204dedd2087a8d9e4732cee7b20dfc Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Bayle <j2b.bayle@gmail.com>
Date: Mon, 5 Sep 2022 13:35:11 +0200
Subject: [PATCH] Disable missing noises

---
 lisainstrument/instrument.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisainstrument/instrument.py b/lisainstrument/instrument.py
index f208a38..8328c71 100755
--- a/lisainstrument/instrument.py
+++ b/lisainstrument/instrument.py
@@ -824,9 +824,11 @@ class Instrument:
 
         Args:
             but: optional category of noises to keep on ['laser', 'modulation',
-                'clock', 'pathlength', 'ranging', 'jitters']
+                'clock', 'pathlength', 'ranging', 'jitters', 'dws', 'sync']
         """
-        valid_noises = ['laser', 'modulation', 'clock', 'pathlength', 'ranging', 'jitters']
+        valid_noises = [
+            'laser', 'modulation', 'clock', 'pathlength',
+            'ranging', 'jitters', 'dws', 'sync']
         if but is not None and but not in valid_noises:
             raise ValueError(f"unknown noise '{but}'")
 
@@ -842,6 +844,10 @@ class Instrument:
             self.disable_ranging_noises()
         if but != 'jitters':
             self.disable_jitters()
+        if but != 'dws':
+            self.dws_asds = ForEachMOSA(0)
+        if but != 'sync':
+            self.sync_asds = ForEachSC(0)
 
     def disable_clock_noises(self):
         """Turn off all imperfections on clocks.
-- 
GitLab