[capture] Move scope helper functions from cycle-converter to scope?
johannheyszl opened this issue · 2 comments
IMO the two helper functions in cycle_converter.py should also go into scope.py because: they get scope cfg as input, hence, are specific to scope.
We should also rename to them to be consistent with determine_sampling_rate
in scope.py. Maybe even group them under a function check_and_convert_cycle_based_cfg
.
Would need some refactor in all already existing capture scripts.
I think I am getting confused now. I thought we didn't want to put these helper functions into the scope code on purpose to keep the scope code simple and allow someone to setup the scopes without using these functions, i.e., by defining the number of samples and offset in samples directly.
I don't have a strong opinion about the naming.
Maybe we should best discuss this in person on THU?