Skip to content

Commit

Permalink
Merge pull request #68 from emotional-cities/eeg-dev
Browse files Browse the repository at this point in the history
Add support for exporting EEG data as dataframe
  • Loading branch information
glopesdev authored Oct 21, 2024
2 parents e834b8a + 89d6bdc commit a372944
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pluma/stream/eeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@ def add_clock_offset(self, offset):
self.server_lsl_marker["Seconds"] += offset
self.data.np_time += offset

def to_frame(self):
return pd.DataFrame(data=self.data.np_eeg, index=self.data.np_time)

def __str__(self):
return f"EEG stream from device {self.device}, stream {self.streamlabel}"

0 comments on commit a372944

Please sign in to comment.