From f3e4fa7e0ffdd1c93a8a1ee74dbc28d5b0567c9a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bayle <j2b.bayle@gmail.com> Date: Tue, 14 Sep 2021 10:41:34 +0200 Subject: [PATCH] Compute timer deviations before TDIR tones --- lisainstrument/instrument.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lisainstrument/instrument.py b/lisainstrument/instrument.py index c521602..afaaa50 100644 --- a/lisainstrument/instrument.py +++ b/lisainstrument/instrument.py @@ -594,6 +594,15 @@ class Instrument: ## TDIR tone + logger.debug("Computing local timer deviations") + self.local_timer_deviations = \ + self.clock_offsets + ForEachSC(lambda sc: + numpy.cumsum(numpy.broadcast_to( + self.clock_noise_offsets[sc] + self.clock_noise_fluctuations[sc], + self.physics_size) + * self.physics_dt) + ) + self.tdir_tones = ForEachMOSA(lambda mosa: 0 if self.tdir_tone_amplitudes[mosa] == 0 \ else self.tdir_tone_amplitudes[mosa] * numpy.sin( @@ -608,15 +617,6 @@ class Instrument: logger.info("Simulating local beams") self.simulate_locking() - logger.debug("Computing local timer deviations") - self.local_timer_deviations = \ - self.clock_offsets + ForEachSC(lambda sc: - numpy.cumsum(numpy.broadcast_to( - self.clock_noise_offsets[sc] + self.clock_noise_fluctuations[sc], - self.physics_size) - * self.physics_dt) - ) - ## Propagation to distant MOSA logger.info("Propagating local beams to distant MOSAs") -- GitLab