File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,16 @@ if __name__ == '__main__':
24
24
# boot up mlab/IPython
25
25
if len (sys .argv ) > 3 :
26
26
subjects_dir = os .environ ['SUBJECTS_DIR' ]
27
- surf_file = os .path .join (subjects_dir ,
28
- "%s/surf/%s.%s" % tuple (sys .argv [1 :4 ]))
29
- if not os .path .exists (surf_file ):
30
- sys .exit ("ERROR: Could not find %s" % surf_file )
27
+ if sys .argv [2 ] in ['both' , 'split' ]:
28
+ hemi_checks = ['lh' , 'rh' ]
29
+ else :
30
+ hemi_checks = [sys .argv [2 ]]
31
+ for h in hemi_checks :
32
+ surf_file = os .path .join (subjects_dir ,
33
+ "%s/surf/%s.%s" % (sys .argv [1 ], h ,
34
+ sys .argv [3 ]))
35
+ if not os .path .exists (surf_file ):
36
+ sys .exit ("ERROR: Could not find %s" % surf_file )
31
37
32
38
if not is_ipython :
33
39
# Parse the args so that --help exits back to the shell
Original file line number Diff line number Diff line change @@ -7,5 +7,6 @@ Documentation
7
7
8
8
./command_line
9
9
./custom_viz
10
+ ./split_brain
10
11
./config_file
11
12
Original file line number Diff line number Diff line change
1
+ .. _split_brain :
2
+
3
+ Working with a split-screen brain
4
+ =================================
5
+
6
+ Placeholder
You can’t perform that action at this time.
0 commit comments