-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for specifying desiredtz and configtz when working with gt3x files #557
Conversation
Codecov Report
@@ Coverage Diff @@
## master #557 +/- ##
==========================================
+ Coverage 72.11% 72.13% +0.02%
==========================================
Files 96 96
Lines 11310 11322 +12
==========================================
+ Hits 8156 8167 +11
- Misses 3154 3155 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@jhmigueles Do you have time in the upcoming week to review and test this PR? I think it does the job, but given that this is an important update for gt3x users it may be good if you could also check it out. |
…of decimal places. In timegap imputation code an error is now produced when data has timegaps larger than 36 hours #522
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have had some fun testing this branch and it all looks good to me. I have made some tests using different actigraph files, both in gt3x and csv, and the configtz and desiredtz work as expected. My only comment is on the g.shell.GGIR documentation where it is specified that desiredtz and configtz is only functional for AX3 cwa and Actigraph gt3x (it is also working, at least with Actigraph csv files).
Edit on previous - just realized I have much more non-wear time detected in the reports with this branch compared to the previous reports, I am investigating this now.
thanks Jairo, I am also looking into the timegaps/timeleaking behaviour reported by Youngdeok. |
... I think I fixed it, will commit fix in a couple of minutes. Now updating unit-tests. |
…, previously code worked based on timegaps in samples which caused issues
Thanks, this is now addressed. |
I was working in Linux where the problem does not occur. In Windows I am able to reproduce your issue. In summary, we need correct timestamps to be able to account for timezone, but by correcting the timestamps it seems we are introducing other issues. I have already spent a substantial amount of time on this. I am happy to continue the work if we can find funding for my time. Alternatively, I welcome outside contributions to resolve the issue #551 . Therefore, I will not merge the pull request yet. It means that .gt3x data can only be analysed in the timezone it is collected in. |
… because it seems to overcomplicating the work
…tion because it seems to overcomplicating the work
I will close this PR now, because I think I fixed the issues in a separate branch and will create a new PR for that later today. |
fixes #551
For .gt3x data files we did not account for arguments
desiredtz
orconfigtz
, and it defaulted to the local timezone where GGIR was run. With this PR this should be addressed.I have tested the new functionality with example files from a study in the USA where we know in which timezone the files were configured and in which timezone the accelerometer was worn.
Checklist before merging:
inst/NEWS.Rd
with a user-readable summary. Please, include references to relevant issues or PR discussions.DESCRIPTION
andCITATION.cff
files.