Resolve "Clock noise is not included in `tcb_timer_deviations`"
Closes #87 (closed)
- Fix the TCB timer deviations (using local timer deviations to include clock noise)
- Refactor TCB synchronization noise to its own function in noise submodule
Merge request reports
Activity
changed milestone to %v1.1
added bug label
added 2 commits
requested review from @Nik
Hi @Nik.
A bug we seem to have overlooked earlier. Could you take a look?
Hi @j2b.bayle
I think the timer offsets were included in the tcb timer deviations and also in the local timer deviations.
Regarding your changes: as far as I understand: in the method cumulative_trapezoid the parameter initial unfortunately does not refer to an integration constant, which would be logical, but to a value inserted at position 0. So I guess we cannot set initial=self.clock_offsets[sc] and should add it outside the function as before.
But the tcb_timer_deviations indeed have to be changed, because the stochastic clock noise is not included. I will try to do that tomorrow within issue #68 (which is on my list far too long, I am sorry for the delay)
There is one problem left: tcb_sync_noises is sampled according the telemetry_times but local_timer_deviations according to the physics sampling rate.
I think we need to write something like self.local_timer_deviations[sc][::int(self.physics_upsampling * self.telemetry_downsampling)]
And also the tps_proper_time_deviations probably have to be resampled
You're right. I've also noticed that problem (which pre-existed this MR) for very long simulations, when we simulate more than one telemetry period. Maybe that can be addressed in a separate MR?
If that's okay with you, maybe you can create an issue about this? Or we include it in #68?
Edited by Jean-Baptiste BayleThat is okay for me:) Would you prefer a new issue or inclusion in #68?