ghammad / pyActigraphy

Python-based open source package for actigraphy data analysis

Home Page:https://ghammad.github.io/pyActigraphy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creation of a reader for Actical

amondino opened this issue · comments

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

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

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