diff --git a/lisainstrument/instrument.py b/lisainstrument/instrument.py index b23a56ee9eaca1706c580a3e7b92899ce6ca94dc..76e5c23d88c815fd00fd266d802be633d83dcea9 100644 --- a/lisainstrument/instrument.py +++ b/lisainstrument/instrument.py @@ -553,7 +553,12 @@ class Instrument: logger.debug("Interpolating proper pseudo-range derivatives") self.d_pprs = ForEachMOSA(lambda mosa: d_pprs(mosa)(self.physics_t)) logger.debug("Interpolating proper time deviation from TCB") - self.tps_proper_time_deviations = ForEachSC(lambda sc: tps_proper_time_deviations(sc)(self.telemetry_t)) + if self.orbit_dataset =='tcb/ltt': + self.tps_proper_time_deviations = ForEachSC(0) + elif self.orbit_dataset == 'tps/ppr': + self.tps_proper_time_deviations = ForEachSC(lambda sc: tps_proper_time_deviations(sc)(self.telemetry_t)) + else: + raise ValueError(f"invalid orbit dataset '{self.orbit_dataset}'") except ValueError as error: logger.error("Missing orbit information at \n%s", self.physics_t) raise ValueError("missing orbit information, use longer orbit file or adjust sampling") from error