Skip to content

Commit

Permalink
Temporary debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bpbond committed Feb 29, 2024
1 parent 343e086 commit 7061b11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/metadata.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ wtf_metadata_match <- function(data_timestamps,
start_dates, start_times,
obs_lengths) {

wtf_message("class(data_timestamps) = ", class(data_timestamps))
wtf_message("class(start_dates) = ", class(start_dates))
wtf_message("class(start_times) = ", class(start_times))

# Input checks and convert to dates/timestamps if needed
stopifnot(length(start_dates) == length(start_times))
stopifnot(length(start_dates) == length(obs_lengths))
Expand Down Expand Up @@ -72,6 +76,8 @@ wtf_metadata_match <- function(data_timestamps,
start_timestamps <- start_dates + start_times
stopifnot(is.POSIXct((start_timestamps))) # should always be true!
stop_timestamps <- start_timestamps + obs_lengths
wtf_message("start_timestamps = ", paste(start_timestamps, collapse = ","))
wtf_message("stop_timestamps = ", paste(stop_timestamps, collapse = ","))

# Metadata records shouldn't overlap; we assume that metadata is from a
# single machine that generated the data
Expand Down

0 comments on commit 7061b11

Please sign in to comment.