diff options
-rw-r--r-- | pkg/R/TOXSWA_cwa.R | 1 | ||||
-rw-r--r-- | pkg/tests/testthat/H_sw_D4_pond.rds | bin | 243098 -> 244540 bytes | |||
-rw-r--r-- | pkg/tests/testthat/H_sw_R1_stream_events.rds | bin | 332 -> 332 bytes |
3 files changed, 1 insertions, 0 deletions
diff --git a/pkg/R/TOXSWA_cwa.R b/pkg/R/TOXSWA_cwa.R index 948d7a9..7fd8ec1 100644 --- a/pkg/R/TOXSWA_cwa.R +++ b/pkg/R/TOXSWA_cwa.R @@ -252,6 +252,7 @@ TOXSWA_cwa <- R6Class("TOXSWA_cwa", pre_interval = event_start - event_end i_start = i event = TRUE + event_max = cwa_cur } } else { if (cwa_cur > event_max) event_max = cwa_cur diff --git a/pkg/tests/testthat/H_sw_D4_pond.rds b/pkg/tests/testthat/H_sw_D4_pond.rds Binary files differindex 0b8046b..62c54bc 100644 --- a/pkg/tests/testthat/H_sw_D4_pond.rds +++ b/pkg/tests/testthat/H_sw_D4_pond.rds diff --git a/pkg/tests/testthat/H_sw_R1_stream_events.rds b/pkg/tests/testthat/H_sw_R1_stream_events.rds Binary files differindex 3e2828e..842c5de 100644 --- a/pkg/tests/testthat/H_sw_R1_stream_events.rds +++ b/pkg/tests/testthat/H_sw_R1_stream_events.rds |