Skip to content

Commit 9faf6f8

Browse files
committed
Merge remote-tracking branch 'nipype_proper/master' into FreeSurfer53
2 parents 816f787 + 252a2dd commit 9faf6f8

File tree

7 files changed

+4
-436
lines changed

7 files changed

+4
-436
lines changed

nipype/pipeline/plugins/sge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def is_initializing(self):
6060
return self._job_queue_state == "initializing"
6161

6262
def is_zombie(self):
63-
return self._job_queue_state == "zombie"
63+
return self._job_queue_state == "zombie" or self._job_queue_state == "finished"
6464

6565
def is_running(self):
6666
return self._job_queue_state == "running"

nipype/workflows/smri/freesurfer/autorecon1.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import sys
2-
import os
3-
import nipype
41
from nipype.interfaces.utility import Function,IdentityInterface
52
import nipype.pipeline.engine as pe # pypeline engine
63
from nipype.interfaces.freesurfer import *
7-
from .utils import copy_file, copy_files
4+
from .utils import copy_file
85

96

107
def checkT1s(T1_files, cw256=False):

nipype/workflows/smri/freesurfer/autorecon2.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
import nipype
31
from nipype.interfaces.utility import Function, IdentityInterface, Merge
42
import nipype.pipeline.engine as pe # pypeline engine
53
from nipype.interfaces.freesurfer import *

nipype/workflows/smri/freesurfer/autorecon3.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import os
2-
import nipype
3-
from nipype.interfaces.utility import Function, IdentityInterface, Merge
1+
from nipype.interfaces.utility import IdentityInterface, Merge
42
import nipype.pipeline.engine as pe # pypeline engine
53
from nipype.interfaces.freesurfer import *
64
from .ba_maps import create_ba_maps_wf
7-
from .utils import createsrcsubj
85
from nipype.interfaces.io import DataGrabber
96

107
def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,

nipype/workflows/smri/freesurfer/recode_tables/fs2abc.csv

Lines changed: 0 additions & 41 deletions
This file was deleted.

nipype/workflows/smri/freesurfer/recon.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ def link_masks(subjects_dir, subject_id):
7979
wf.connect(autorecon_resume, "subject_id", outputnode, "subject_id")
8080
return wf
8181

82-
def create_reconall_workflow(name="ReconAll", plugin_args=None,
83-
recoding_file=None):
82+
def create_reconall_workflow(name="ReconAll", plugin_args=None):
8483
"""Creates the ReconAll workflow in nipype.
8584
8685
Example
@@ -554,15 +553,6 @@ def completemethod(datasinked_files, subject_id):
554553
(inputspec, completion, [('subject_id', 'subject_id')]),
555554
(completion, postds_outputspec, [('subject_id', 'subject_id')])])
556555

557-
558-
#### Workflow additions go here
559-
if recoding_file:
560-
from utils import create_recoding_wf
561-
recode = create_recoding_wf(recoding_file)
562-
reconall.connect([(ar3_wf, recode, [('outputspec.aseg', 'inputspec.labelmap')]),
563-
(recode, outputspec, [('outputspec.recodedlabelmap', 'recoded_labelmap')])])
564-
565-
566556
return reconall
567557

568558

0 commit comments

Comments
 (0)