Skip to content

Commit

Permalink
fix: enable same date calibration inputs #515
Browse files Browse the repository at this point in the history
  • Loading branch information
laresbernardo committed Oct 20, 2022
1 parent 46f8afb commit 8ea01ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/R/checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,10 @@ check_calibration <- function(dt_input, date_var, calibration_input, dayInterval
temp$channel, temp$liftStartDate, temp$liftEndDate, window_start, window_end
))
}
if (temp$liftStartDate >= temp$liftEndDate) {
if (temp$liftStartDate > temp$liftEndDate) {
stop(sprintf(
paste(
"Your calibration's date range for %s between %s and %s should respect liftStartDate < liftEndDate.",
"Your calibration's date range for %s between %s and %s should respect liftStartDate <= liftEndDate.",
"Please, correct this experiment from 'calibration_input'."
),
temp$channel, temp$liftStartDate, temp$liftEndDate
Expand Down

0 comments on commit 8ea01ed

Please sign in to comment.