Closed itismeghasyam closed 5 years ago
Errors 1-3 are a side effect of filter_time
not returning an error dataframe if none of the data fits between the bounds. Error 4 is a separate issue most likely related to other errors we've had with unrealistically small inputs.
I'm going to label this as critical since it's a small fix for errors 1-3 and file a separate issue for Error 4.
Motivation
I recently ran into an error while analyzing a batch of rest tremor records, where I am subsetting a 10s tremor file between 2s and 9s, and then processing using ddply.
Some records, even though stored as a valid JSON, are not 10s long. One of them had 39 samples (~ 0.4 s at 100Hz sampling rate), another just 5 samples! (Must have been some error on the app side to even consider this). These records were causing issues with the set of parameters I was using for input to get_tremor_features(). I tested a few sets of parameters and figured out the following setups that do not work as intended
This is also true for get_kinetic_tremor_features(), I believe the problem lies deep down in the sensor modules.
Error list
Setup environment
Error 1
Error 2
Error 3
Error 4