paulhibbing / AGread

Read Accelerometer Files from ActiGraph Accelerometers
Other
15 stars 4 forks source link

read_gt3x null activity? #35

Closed edmundseto closed 2 years ago

edmundseto commented 2 years ago

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

paulhibbing commented 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:

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!

edmundseto commented 2 years ago

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

paulhibbing commented 2 years ago

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!

paulhibbing commented 2 years ago

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.