瀏覽代碼

gin commit from Ivory

Modified files: 1
Achilleas Koutsou 5 年之前
父節點
當前提交
e237f1dddb
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      readrawnix.py

+ 9 - 0
readrawnix.py

@@ -1,3 +1,6 @@
+"""
+
+"""
 import os
 import sys
 import numpy as np
@@ -84,6 +87,12 @@ def create_mne_annotations(mtags):
 
 
 def import_nix(nixfilename):
+    """
+    Import a NIX file (generated with mnetonix.py) into an MNE Raw structure.
+
+    :param nixfilename: Path to the NIX file to be loaded.
+    :rtype: mne.io.RawArray
+    """
     nixfile = nix.File(nixfilename, mode=nix.FileMode.ReadOnly)
 
     # root, ext = os.path.splitext(nixfilename)