wadpac / GGIR

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

Add check that basic sleeplog has even number of columns #1170

Closed vincentvanhees closed 3 weeks ago

vincentvanhees commented 2 months ago

If basic sleeplog is provided with an odd number of columns or when coln1 is incorrectly specified such that an odd number of columns is read then GGIR may still run but treats wakeup as onset and onset as wakeup leading to cleaningcode 5. To address this I think an error should be generated when the number of columns after considering parameter coln1 is not even.

vincentvanhees commented 3 weeks ago

Closing, because this will be address with new updates related to #1138