diff --git a/lisainstrument/instrument.py b/lisainstrument/instrument.py index 7bc02c155569c94cd6ebd0d27d3096b3eaafb043..1da3034501a32f1beb1a383efda7d2f2d859eda3 100755 --- a/lisainstrument/instrument.py +++ b/lisainstrument/instrument.py @@ -802,9 +802,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}'") @@ -820,6 +822,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.