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

AX3 Reader

ghammad opened this issue · comments

New feature: develop a reader for the OpenMovement AX device.

Documentation about the data format:
https://github.com/digitalinteraction/openmovement

Steps:

  • write a class for parsing the CWA binary file header
  • write a class for parsing the CWA binary file block
  • write a class CWA that reads binary file and creates a pyActigraphy object (base class: BaseRaw)

The actual implementation is too slow.
A typical file contains ~ 500000 blocks with ~140 samples (for AX3). It makes a serie of 70 millions of data (all in memory). DataFrame/Serie can (I hope manage it) but it manages the data append horribly.

I will experiment with possible solutions.

The implementation of a reader able to handle the AX3 native format is postponed to the next major release.