Closed edmundseto closed 2 years ago
Hi Edmund,
Thanks for reaching out. I'm happy to try diagnosing what's going on. It's been awhile since I wrote the current version of the code, but here are a few clarifying questions based on what I remember:
RAW
element, or is that what you're saying is NULL
? (Most packet types get saved under their original names [PARAMETERS, CAPSENSE, etc.], but I think acceleration data get saved as RAW in most or all cases -- If you see that in your output, it should match what you get out of ActiLife)NULL
, whereas ActiLife might fill in 0's)If those questions don't help us solve the issue, I can try to take a more careful look. But I will probably need you to provide a sample file if we go that route, and I know that can be an issue with research data. Hopefully it won't be necessary. Just let me know!
Hi Paul,
Your response was helpful. I think it's related to issue #19.
Processing file.gt3x
Parsing info.txt ............. COMPLETE
Will parse the following packet types, if available: METADATA, PARAMETERS, SENSOR_SCHEMA, BATTERY EVENT, TAG, ACTIVITY, HEART_RATE_BPM HEART_RATE_ANT, HEART_RATE_BLE, LUX, CAPSENSE EPOCH, EPOCH2, EPOCH3, EPOCH4 ACTIVITY2, SENSOR_DATA
Reading log.bin ............. COMPLETE
Getting record headers ............... COMPLETE
Parsing PARAMETERS packet(s) ............. COMPLETE
Parsing EVENT packet(s) ............. COMPLETE
Parsing METADATA packet(s) ............. COMPLETE
Parsing BATTERY packet(s) ............. COMPLETE
Parsing ACTIVITY packet(s)No method exists yet for parsing ACTIVITY packets -- returning NULL.
Parsing LUX packet(s)No method exists yet for parsing LUX packets -- returning NULL.
Parsing CAPSENSE packet(s) ............. COMPLETE
Thanks again, Edmund
Ah, I think this may be a version issue. I have made updates on GitHub that are not yet available on CRAN. I always forget about that (not the first time).
Can you try running remotes::install_github(“paulhibbing/AGread”) ? After the installation completes, you may want to restart your session before trying your file again.
Hope that does the trick!
Hi @edmundseto, just checking back to see if the above suggestion helped. I will probably close this issue in a week or so if there's no further discussion.
Thanks for developing this package. I'm a new user.
When I call read_gt3x on an Actigraph wGT3X-BT raw gt3x file, the result contains useful metadata, parameters, battery, capsense info. But, the activity in the result is null. Is this expected?
The gt3x file seems OK, as I can export it to csv in Actilife, and obtain the time-series of activity that way.
Best,
Edmund