wadpac / GGIRread

Functions for reading accelerometer data files
https://CRAN.R-project.org/package=GGIRread
Apache License 2.0
5 stars 3 forks source link

Add block integrity check to readAxivity #42

Closed vincentvanhees closed 11 months ago

vincentvanhees commented 11 months ago

Fixes #41

In this PR:

codecov-commenter commented 11 months ago

Codecov Report

Merging #42 (68f0249) into main (f80fc0d) will decrease coverage by 1.36%. The diff coverage is 68.86%.

:exclamation: Current head 68f0249 differs from pull request most recent head 52857dd. Consider uploading reports for the commit 52857dd to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
- Coverage   85.62%   84.27%   -1.36%     
==========================================
  Files           9        9              
  Lines         925      960      +35     
==========================================
+ Hits          792      809      +17     
- Misses        133      151      +18     
Files Changed Coverage Δ
R/readAxivity.R 81.98% <68.86%> (-3.93%) :arrow_down:
l-k- commented 11 months ago

I was looking at the firmware code, and documentation here suggests that old files with a 0 at offset 24 don't have checksums. We are already treating such files differently here, so maybe we should do the same for checksums.

I will spend more time on this review tomorrow (Wednesday).

vincentvanhees commented 11 months ago

thanks @l-k- for all your input. I will merge this and make a new GitHub release now. CRAN is having a summer break, so next CRAN release will have to wait a bit.