ghammad / pyActigraphy

Python-based open source package for actigraphy data analysis
https://ghammad.github.io/pyActigraphy
GNU General Public License v3.0
136 stars 27 forks source link

Support encodings for RPX files #135

Closed ugGit closed 1 year ago

ugGit commented 1 year ago

Adding the functionallity to specify a file encoding when reading RPX files. This change is complemented by a test case reading in the french RPX test file after having it converted to cp1252.

This implements issue #134.

ugGit commented 1 year ago

Just a side note. The file used for testing is the exact same file as the French one. To change the encoding, I performed the following steps:

  1. open the file in notepad++ (it had UTF-8 as format)
  2. change the encoding (i.e., converting the file) to ANSII (aka. cp1252)
  3. save the file

Why taking the french file? Well, it has special characters inside where likely the conding between UTF-8 and ANSII differs. Thus, the encoding format is conserved. I got hinted to that fact by this forum thread https://community.notepad-plus-plus.org/post/18553

ghammad commented 1 year ago

Close #134