Skip to content

Commit 2d863a2

Browse files
committed
make arg order in range_check_cache more consistent with other functions
1 parent 322b660 commit 2d863a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/checks/single/range_check.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ pub fn range_check(datum: Option<f32>, lower_limit: f32, upper_limit: f32) -> Fl
2121
/// Apply [`range_check`] to a whole [`DataCache`]
2222
pub fn range_check_cache(
2323
cache: &DataCache,
24-
upper_limit: f32,
2524
lower_limit: f32,
25+
upper_limit: f32,
2626
) -> Vec<Timeseries<Flag>> {
2727
let num_series = cache.data.len();
2828
let mut result_vec = Vec::with_capacity(num_series);
@@ -41,7 +41,7 @@ pub fn range_check_cache(
4141
result_vec.push(Timeseries {
4242
tag: cache.data[i].tag.clone(),
4343
values: windows
44-
.map(|datum| range_check(*datum, upper_limit, lower_limit))
44+
.map(|datum| range_check(*datum, lower_limit, upper_limit))
4545
.collect(),
4646
});
4747
}

0 commit comments

Comments
 (0)