"""
Perform a fixed run of FIAC model

python fixed_run.py [subject]

"""

if __name__ == "__main__":
    import sys, os
    sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))

    import fixed, io
    io.data_path = '/home/analysis/FIAC'

    if len(sys.argv) == 2:
        subject = int(sys.argv[1])
    else:
        subject = 3

    os.system("rm /home/analysis/FIAC/fixed/*/*/*/fiac%d/*bz2" % subject)

    fixed.run(subj=subject)

    os.system("bzip2 /home/analysis/FIAC/fixed/*/*/*/fiac%d/*nii" % subject)

@@ -226,49 +226,8 @@
 , io
-%0A    io.data_path = '/home/analysis/FIAC'
 %0A%0A  
@@ -318,9 +318,9 @@
 t = 
-3
+1
 %0A%0A  
@@ -335,35 +335,18 @@
 tem(%22rm 
-/home/analysis/FIAC
+%25s
 /fixed/*
@@ -364,16 +364,31 @@
 /*bz2%22 %25
+ (io.data_path,
  subject
@@ -384,24 +384,25 @@
 th, subject)
+)
 %0A%0A    fixed.
@@ -445,27 +445,10 @@
 ip2 
-/home/analysis/FIAC
+%25s
 /fix
@@ -470,16 +470,31 @@
 /*nii%22 %25
+ (io.data_path,
  subject
@@ -486,17 +486,18 @@
 a_path, subject)
+)
 %0A

use io.data_path