Skip to content

Commit

Permalink
allow for broader range in values for chunksize, fixes #1155
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentvanhees committed Jun 14, 2024
1 parent 2f7060d commit 7cd691f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/check_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ check_params = function(params_sleep = c(), params_metrics = c(),
check_class("Raw data", params = params_rawdata, parnames = boolean_params, parclass = "boolean")
check_class("Raw data", params = params_rawdata, parnames = character_params, parclass = "character")

if (params_rawdata[["chunksize"]] > 1.5) params_rawdata[["chunksize"]] = 1.5
if (params_rawdata[["chunksize"]] < 0.2) params_rawdata[["chunksize"]] = 0.2
if (params_rawdata[["chunksize"]] < 0.05) params_rawdata[["chunksize"]] = 0.05
}
if (length(params_247) > 0) {
# iglevels and qwindow can be numeric or character, so not tested
Expand Down

0 comments on commit 7cd691f

Please sign in to comment.