|
@@ -0,0 +1,21 @@
|
|
|
+import nixio as nix
|
|
|
+import matplotlib.pyplot as plt
|
|
|
+import numpy as np
|
|
|
+import os
|
|
|
+
|
|
|
+
|
|
|
+def metadata_overview(nf):
|
|
|
+
|
|
|
+ for s in nf.sections:
|
|
|
+ s.pprint(depth=-1)
|
|
|
+
|
|
|
+
|
|
|
+if __name__ == "__main__":
|
|
|
+ example_file = "2018-11-05-ab-invivo-1.nix"
|
|
|
+ if not os.path.exists(example_file):
|
|
|
+ print("Example file was not found")
|
|
|
+ exit()
|
|
|
+ nix_file = nix.File.open(example_file, nix.File.ReadOnly)
|
|
|
+ metadata_overview(nix_file)
|
|
|
+ nix_file.close()
|
|
|
+
|