You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function create_intervals inside expand_intervals used by mimic_rate_cv calls the function trunc_time in order to truncate times after 6 hours. There are two issues here:
I am unsure whether a hard-coded truncation after 6 hours is sensible for a function that isn't MIMIC-specific. There might be something I am missing here but I think it would make sense to have expand_intervals take a max_len argument that then defaults to 6 hours.
The above is currently moot in any case, as trunc_time currently doesn't actually truncate. The replace function is currently never assigned back to the vector x.
The function
create_intervals
insideexpand_intervals
used bymimic_rate_cv
calls the functiontrunc_time
in order to truncate times after 6 hours. There are two issues here:expand_intervals
take amax_len
argument that then defaults to 6 hours.ricu/R/callback-itm.R
Lines 414 to 415 in 7f2cc42
trunc_time
currently doesn't actually truncate. Thereplace
function is currently never assigned back to the vectorx
.ricu/R/utils-ts.R
Lines 643 to 654 in 7f2cc42
This can be easily checked by running
which has a max length of 14 even after "truncating".
The text was updated successfully, but these errors were encountered: