pyActigraphy icon indicating copy to clipboard operation
pyActigraphy copied to clipboard

Creation of a reader for Actical

Open amondino opened this issue 3 years ago • 2 comments

Hi! I am trying to read Actical files (AWC) but the script does not support them I would really appreciate your help!

amondino avatar Dec 02 '21 20:12 amondino

Hello @amondino.

Thank you for the request and for the test files.

Apparently, the .awc files are extremely similar to the .awd (Actiwatch 4) files. Except that the header contains some extra lines compared to the .awd header.

Short-term solution: use the current read_raw_awd function with the parameter header_size=12:

raw = pyActigraphy.io.read_raw_awd(path_to_my_favourite_awc_file, header_size=12)

Long-term solution: I'll make a wrapper around the read_raw_awd function, named read_raw_awc for example.

May I ask you to confirm that with your .awc files, the short-term fix also work?

Greg

ghammad avatar Dec 02 '21 22:12 ghammad

Wonderful! It worked just fine! Thank you so much!

amondino avatar Dec 03 '21 16:12 amondino