matiasandina / homecage_quantification

Code for quantifying homecage activity
https://github.com/homecage_quantification
0 stars 0 forks source link

i_x = median_filter(x) will fail when too many `NA` #34

Open matiasandina opened 2 years ago

matiasandina commented 2 years ago

In flow_data_analysis/app.R

https://github.com/matiasandina/homecage_quantification/blob/7c88fcf6de1c9fcf88388b7e1d0825fd79f7fe93/flow_data_analysis/app.R#L251-L262

Consider

  1. Not doing this as a default, only do it when you actually need (post-processing) <- I would go with this one
  2. Writing code that tries to do this and if it fails it avoids doing it.