|
@@ -86,9 +86,9 @@ def create_mne_annotations(mtags):
|
|
|
def import_nix(nixfilename):
|
|
|
nixfile = nix.File(nixfilename, mode=nix.FileMode.ReadOnly)
|
|
|
|
|
|
- root, ext = os.path.splitext(nixfilename)
|
|
|
- bvfilename = root + os.extsep + "edf"
|
|
|
- bvfile = mne.io.read_raw_edf(bvfilename, stim_channel=False)
|
|
|
+ # root, ext = os.path.splitext(nixfilename)
|
|
|
+ # bvfilename = root + os.extsep + "vhdr"
|
|
|
+ # bvfile = mne.io.read_raw_brainvision(bvfilename, stim_channel=False)
|
|
|
|
|
|
# Create MNE Info object
|
|
|
infosec = nixfile.sections["Info"]
|
|
@@ -116,11 +116,6 @@ def import_nix(nixfilename):
|
|
|
|
|
|
mnerawdata.set_annotations(annotations)
|
|
|
|
|
|
- # print("NIX")
|
|
|
- # print(nixfile.sections["Extras"].props)
|
|
|
- # print("=============\n\nEDF")
|
|
|
- # print(bvfile._raw_extras)
|
|
|
-
|
|
|
nixfile.close()
|
|
|
|
|
|
return mnerawdata
|