Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added sd-card-file-conversion script #1207

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Shyamal-Dharia
Copy link

Issue #1014 SD Card Hex to Standard Text File Conversion script.

Create a python script for sd card hex to csv file. additionally, it can also convert csv files to other formats using mne-python.

I have tested it with my sd card files and compared it with them. It works!

Also, couple of my files had analog values from photodiode sensor. It also converts those values and puts it in the last three column. Values can be distinguished by looking at graph generated from csv file from the column that had sensor values. The values ranged between 0 to 1. attached is the picture. Therefore, I think the script works for analog sensors too.

Took reference from https://github.com/roflecopter/openbci-psg for conversion.

Hope this helps!

graph

@retiutut
Copy link
Member

GUI v4 files are very different from what will be GUI v6 files. Can you please download GUI v6 (beta) and try another pass at this? Awesome work so far!

Copy link
Member

@retiutut retiutut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest another pass to make compatible with GUI v6.

@Shyamal-Dharia
Copy link
Author

Understood. Yes, working on it will update the code as soon as possible.

@Shyamal-Dharia
Copy link
Author

The recent code update has been tested under the following scenarios with cyton+daisy:

  1. With analog sensor values.
  2. In digital mode, where the sensor was not attached.
  3. With normal accelerometer data.

Based on my understanding, due to some limitations, the data for the following columns are not stored on the SD card: "Timestamp," "Marker Channel," and "Timestamp (Formatted)." Therefore, I was not able to use them and kept their values as zeros.

file type conversion also been tested for all three file types (.eeg, .edf, .set).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants