Open thorwhalen opened 4 years ago
Okay, I see a self._t_vec_out
property that is written dynamically, and read in sample_sig_chans
.
The titling question remains valid though: Perhaps better expressed as "why the different treatment of sig_chans
and t_vec_out
?
This is a little strange. Would it make more sense to just require you pass t_vec_out? Alternatively, this sample_sig_chans doesn't need to be a class method and can be moved to a function outside of the class.
Just in case any purists are watching: As it stand, sample_sig_chans
is not a class method but an instance method. See for example here.
I just checked, and indeed _t_vec_out
is the only instance attribute used in sample_sig_chans
, so indeed, I believe it would be cleaner if refactored as a standalone function that took t_vec_out
as an input.
Here goes....
I see
sig_chans
is passed in, but not_vec_out
.My thought is that
t_vec_out
is thex
of the interpolation that happens insample_sig_chans
, so unless you have a (trustworthy) regular sample rate, you need thet_vec_out
.