Browse Source

gin commit from Ivory

Modified files: 2
Achilleas Koutsou 5 years ago
parent
commit
53171e49c7
2 changed files with 4 additions and 9 deletions
  1. 1 1
      EEG for MNE/LED_28_06_2012_104.nix
  2. 3 8
      readrawnix.py

+ 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):
     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