wadpac / GGIR

Code corresponding to R package GGIR
https://wadpac.github.io/GGIR/
Apache License 2.0
94 stars 60 forks source link

timegap imputation for ad-hoc csv not working? #1154

Closed vincentvanhees closed 2 months ago

vincentvanhees commented 3 months ago

I think this line https://github.com/wadpac/GGIR/blob/master/R/g.getmeta.R#L222

if (params_rawdata[["imputeTimegaps"]] && (dformat == FORMAT$CSV || dformat == FORMAT$GT3X)) {

should be

      if (params_rawdata[["imputeTimegaps"]] && (dformat == FORMAT$CSV ||
                                                 dformat == FORMAT$AD_HOC_CSV ||
                                                 dformat == FORMAT$GT3X)) {

if we want timegap imputation to work for ad-hoc csv data.

It seems this issue emerge with the code revisions at the end of 2023. I have just tested it and with the above edit it seems to work again. I will prepare a PR in upcoming days.