Skip to content

Commit ed6a4ea

Browse files
committed
Update data test site and channel names
1 parent 980cc0c commit ed6a4ea

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

analysis/tests/test_hourly_csvs.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ for (site in config$sites$abbreviation) {
2626
hourly[[site]] = read.csv(site_csv, check.names = F)
2727
}
2828

29-
# check numeric formatting (just WFML NO to make sure it's running)
30-
wfml = hourly[['WFML']]
31-
no_config = subset(config$channels, site == 'WFML' & data_source == 'campbell' &
32-
name == 'NO')
29+
# check numeric formatting (just WFMB NO to make sure it's running)
30+
wfmb = hourly[['WFMB']]
31+
no_config = subset(config$channels, site == 'WFMB' & data_source == 'campbell' &
32+
name == 'NO_Avg')
3333
no_report_decimals = no_config$report_decimals
34-
new_no = wfml[wfml$`Time (EST)` >= '2018-10-01', 'NO (ppbv)']
34+
new_no = wfmb[wfmb$`Time (EST)` >= '2018-10-01', 'NO (ppbv)']
3535
max_no_decimals =
3636
max(nchar(sub('^[^.]*\\.?', '', as.character(new_no))), na.rm = T)
3737
expect_true(max_no_decimals <= no_report_decimals, 'correct number of decimals')

0 commit comments

Comments
 (0)