Browse Source

gin commit from Ivory

Modified files: 2
Achilleas Koutsou 5 năm trước cách đây
mục cha
commit
53171e49c7

+ 1 - 1
EEG for MNE/LED_28_06_2012_104.nix

@@ -1 +1 @@
-/annex/objects/MD5-s39685975--9a6574b04bd10580411ef0d746c98faa
+/annex/objects/MD5-s39685975--302aac955fc2f4eacf989b7e0a549d9a

+ 3 - 8
readrawnix.py

@@ -86,9 +86,9 @@ def create_mne_annotations(mtags):
 def import_nix(nixfilename):
 def import_nix(nixfilename):
     nixfile = nix.File(nixfilename, mode=nix.FileMode.ReadOnly)
     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
     # Create MNE Info object
     infosec = nixfile.sections["Info"]
     infosec = nixfile.sections["Info"]
@@ -116,11 +116,6 @@ def import_nix(nixfilename):
 
 
     mnerawdata.set_annotations(annotations)
     mnerawdata.set_annotations(annotations)
 
 
-    # print("NIX")
-    # print(nixfile.sections["Extras"].props)
-    # print("=============\n\nEDF")
-    # print(bvfile._raw_extras)
-
     nixfile.close()
     nixfile.close()
 
 
     return mnerawdata
     return mnerawdata