Skip to content

Commit d3614c5

Browse files
committed
Merge branch 'dev172_local'
2 parents a218419 + bcd45d2 commit d3614c5

File tree

49 files changed

+461
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+461
-273
lines changed

.circleci/config.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,17 @@ jobs:
141141
VERSION=$(python -c "from info import __version__; print(__version__)")
142142
cd ..
143143
if ! [[ $CIRCLE_BRANCH = 'master' ]]
144-
then if [[ $CIRCLE_BRANCH = 'develop' || ${CIRCLE_BRANCH:0:7} = 'hotfix/' ]]
145-
then REBASE_BASE_BRANCH=master
146-
else REBASE_BASE_BRANCH=develop
147-
fi
148-
GIT_SEQUENCE_EDITOR=dev/circleci_data/drop_version_bump_commits git rebase -X ours -i origin/$REBASE_BASE_BRANCH --empty drop
144+
then
145+
git fetch --all
146+
if [[ -n ${CIRCLE_PR_NUMBER} && -n ${GITHUB_PR_BASE_TOKEN} ]]
147+
then
148+
curl -L "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64" -o jq
149+
chmod +x jq
150+
REBASE_BASE=origin/$(curl -u shnizzedy:$GITHUB_PR_BASE_TOKEN "https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls/$CIRCLE_PR_NUMBER" | jq '.base.ref' | tr -d '"')
151+
else
152+
REBASE_BASE=$(git rev-parse --short HEAD~30)
153+
fi
154+
GIT_SEQUENCE_EDITOR=dev/circleci_data/drop_version_bump_commits git rebase -X ours -i $REBASE_BASE --empty drop
149155
fi
150156
echo "v${VERSION}" > version
151157
sed -i -r "s/^(# [Vv]ersion ).*$/# Version ${VERSION}/g" dev/docker_data/default_pipeline.yml

CPAC/distortion_correction/distortion_correction.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ def connect_distortion_correction(workflow, strat_list, c, diff, blip,
465465
node, node_out = strat[epi_param_rp_key]
466466
workflow.connect(node, node_out,
467467
match_epi_fmaps_node, 'epi_fmap_params_one')
468-
if len(epi_rp_key) > 1:
468+
469+
if len(fmap_rp_list) > 1:
469470
epi_rp_key = fmap_rp_list[1]
470471
epi_param_rp_key = "{0}_scan_params".format(epi_rp_key)
471472
node, node_out = strat[epi_rp_key]

CPAC/func_preproc/func_ingress.py

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ def connect_func_ingress(workflow, strat_list, c, sub_dict, subject_id,
5353
blip = False
5454
fmap_rp_list = []
5555
fmap_TE_list = []
56+
5657
if "fmap" in sub_dict:
5758
for key in sub_dict["fmap"]:
59+
5860
gather_fmap = create_fmap_datasource(sub_dict["fmap"],
5961
"fmap_gather_"
6062
"{0}".format(key))
@@ -101,7 +103,7 @@ def connect_func_ingress(workflow, strat_list, c, sub_dict, subject_id,
101103
})
102104
fmap_TE_list.append("{}_TE".format(key))
103105

104-
if key == "epi_AP" or key == "epi_PA":
106+
if "epi_" in key:
105107
blip = True
106108

107109
if diff:
@@ -164,19 +166,6 @@ def connect_func_ingress(workflow, strat_list, c, sub_dict, subject_id,
164166
as_module=True
165167
), name=workflow_name)
166168

167-
if "Selected Functional Volume" in c.func_reg_input:
168-
get_func_volume = pe.Node(interface=afni.Calc(),
169-
name='get_func_volume_{0}'.format(
170-
num_strat))
171-
172-
get_func_volume.inputs.set(
173-
expr='a',
174-
single_idx=c.func_reg_input_volume,
175-
outputtype='NIFTI_GZ'
176-
)
177-
workflow.connect(func_wf, 'outputspec.rest',
178-
get_func_volume, 'in_file_a')
179-
180169
# wire in the scan parameter workflow
181170
workflow.connect(func_wf, 'outputspec.scan_params',
182171
scan_params, 'data_config_scan_params')
@@ -205,9 +194,4 @@ def connect_func_ingress(workflow, strat_list, c, sub_dict, subject_id,
205194

206195
strat.set_leaf_properties(func_wf, 'outputspec.rest')
207196

208-
if "Selected Functional Volume" in c.func_reg_input:
209-
strat.update_resource_pool({
210-
'selected_func_volume': (get_func_volume, 'out_file')
211-
})
212-
213197
return (workflow, diff, blip, fmap_rp_list)

0 commit comments

Comments
 (0)