py_neuromodulation icon indicating copy to clipboard operation
py_neuromodulation copied to clipboard

Handle input in multiple data formats

Open toni-neurosc opened this issue 1 year ago • 1 comments

Currently offline data analysis accepts NumPy arrays and Pandas dataframes as input. We can leverage the MNE package to accept a variety of data formats. See https://mne.tools/dev/generated/mne.io.read_raw.html

toni-neurosc avatar Apr 19 '24 09:04 toni-neurosc

Great point @toni-neurosc! We could add a separate function to https://github.com/neuromodulation/py_neuromodulation/blob/fd2b112f9647e7160cbae8f8b2e1b09f7f627018/py_neuromodulation/nm_IO.py#L49

and maybe call it read_raw_mne and add it to nm_IO. Additionally it would be great to add a test maybe test_mne_raw_io that utilizes the brainvision file py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_ieeg.vhdr.

timonmerk avatar Apr 28 '24 20:04 timonmerk

Fixed by #329

timonmerk avatar Jun 17 '24 15:06 timonmerk