-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow negative delays in trace_utilities.delay #768
base: develop
Are you sure you want to change the base?
Conversation
… cropping. Also change calculation of the number of samples to be cropped. The original code was wron when time_delay / sampling_frequency was a round number.
Oh this function is only used in one module (analogToDigitalConverter) which makes the gravity of our decisions much smaller. Why it is not used in |
@cg-laser or @sjoerd-bouma any thoughts? |
Okay one unit test is still failing which I will investigate. However, apparently the new warning I added is firing a lot during our simulation examples. Are we time-shifting traces with noise? Shouldn't we corp those traces than by default? |
…ld be rather happening in an dedicated PR
what is going on here? |
This is not finished yet and will break the tests. We have to take a few decisions here. Currently I am always cropping the traces after delaying to remove the now unphysical signals at the beginning or end. However, in case of a positive delay this will change the trace start time (as it did before). This is now calculated in function. If we want to keep that we have to change the code where this function is used. I also changed the calculation of the number of samples to crop. We might need to check if that calculation agrees now with calculations outside of this function. And finally, why do we have the argument
delayed_samples
I would remove it.