From 6c24c7d64bd232868eb8bf785188dd6f0ddd5419 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Bayle <j2b.bayle@gmail.com>
Date: Tue, 13 Dec 2022 16:03:02 +0100
Subject: [PATCH] Simplifies `the_wrt_tcb_withinitial`

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

diff --git a/lisainstrument/instrument.py b/lisainstrument/instrument.py
index c47999d..063247c 100755
--- a/lisainstrument/instrument.py
+++ b/lisainstrument/instrument.py
@@ -930,11 +930,9 @@ class Instrument:
         self.the_wrt_tcb_withinitial = \
             self.tps_wrt_tcb \
             + self.clock_offsets \
-            + ForEachSC(lambda sc:
-                self.clock_freqoffsets[sc] * (t + self.tps_wrt_tcb[sc]) \
-                + self.clock_freqlindrifts[sc] * (t + self.tps_wrt_tcb[sc])**2 / 2 \
-                + self.clock_freqquaddrifts[sc] * (t + self.tps_wrt_tcb[sc])**3  / 3
-            ) \
+            + self.clock_freqoffsets * (t + self.tps_wrt_tcb) \
+            + self.clock_freqlindrifts * (t + self.tps_wrt_tcb)**2 / 2 \
+            + self.clock_freqquaddrifts * (t + self.tps_wrt_tcb)**3  / 3 \
             + self.tps_wrt_tcb * self.clock_noise_fluctuations_withinitial \
             + self.integrated_clock_noise_fluctuations_withinitial
 
-- 
GitLab