lockin: change zip order in decimate for clarity
This commit is contained in:
parent
4edda09d86
commit
9592bb74a7
|
@ -277,9 +277,13 @@ pub fn decimate(
|
||||||
in_phase_decimated
|
in_phase_decimated
|
||||||
.iter_mut()
|
.iter_mut()
|
||||||
.zip(quadrature_decimated.iter_mut())
|
.zip(quadrature_decimated.iter_mut())
|
||||||
.zip(in_phase.iter().step_by(n_k))
|
.zip(
|
||||||
.zip(quadrature.iter().step_by(n_k))
|
in_phase
|
||||||
.for_each(|(((i_decimated, q_decimated), i_original), q_original)| {
|
.iter()
|
||||||
|
.step_by(n_k)
|
||||||
|
.zip(quadrature.iter().step_by(n_k)),
|
||||||
|
)
|
||||||
|
.for_each(|((i_decimated, q_decimated), (i_original, q_original))| {
|
||||||
*i_decimated = *i_original;
|
*i_decimated = *i_original;
|
||||||
*q_decimated = *q_original;
|
*q_decimated = *q_original;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue