refactor(argus-core): create explicit signal and and or methods
This commit is contained in:
parent
16cbaace20
commit
4084bb738b
3 changed files with 32 additions and 11 deletions
|
|
@ -24,8 +24,7 @@ where
|
|||
|
||||
// Find the first index that satisfies `t >= delta` while also checking
|
||||
// if we need to interpolate
|
||||
let Some((idx, first_t)) = time_points.iter().find_position(|&t| t >= &delta)
|
||||
else {
|
||||
let Some((idx, first_t)) = time_points.iter().find_position(|&t| t >= &delta) else {
|
||||
// Return an empty signal (we exhauseted all samples).
|
||||
return Signal::Empty;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue