Skip to content

Commit 5a04f9d

Browse files
authored
Merge pull request #16 from nipype/develop
Bugfixes with package generation
2 parents 5f93d84 + 8978065 commit 5a04f9d

File tree

25 files changed

+671
-264
lines changed

25 files changed

+671
-264
lines changed

.github/workflows/ci-cd.yml

+37
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,40 @@ jobs:
113113
with:
114114
user: __token__
115115
password: ${{ secrets.PYPI_API_TOKEN }}
116+
117+
118+
trigger_post_release:
119+
needs: [deploy]
120+
runs-on: ubuntu-latest
121+
strategy:
122+
matrix:
123+
repo:
124+
- afni
125+
- ants
126+
- fsl
127+
- freesurfer
128+
env:
129+
SECRET: ""
130+
steps:
131+
- name: Get secret for corresponding repo
132+
id: get_secret
133+
run: |
134+
if [ "${{ matrix.repo }}" == "afni" ]; then
135+
SECRET="${{ secrets.AFNI_PAT }}"
136+
elif [ "${{ matrix.repo }}" == "ants" ]; then
137+
SECRET="${{ secrets.ANTS_PAT }}"
138+
elif [ "${{ matrix.repo }}" == "fsl" ]; then
139+
SECRET="${{ secrets.FSL_PAT }}"
140+
elif [ "${{ matrix.repo }}" == "freesurfer" ]; then
141+
SECRET="${{ secrets.FREESURFER_PAT }}"
142+
fi
143+
echo "SECRET=$SECRET" >> $GITHUB_ENV
144+
145+
- name: Trigger post-release on downstream repos
146+
if: github.event_name == 'release' && env.SECRET
147+
run: |
148+
curl -XPOST -u "${{ env.SECRET }}" -H "Accept: application/vnd.github.everest-preview+json" \
149+
"https://api.github.com/repos/nipype/pydra-${{ matrix.repo }}/dispatches" \
150+
-d '{"event_type": "create-post-release"}'
151+
env:
152+
PAT: ${{ env.SECRET }}

conftest.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def pytest_internalerror(excinfo):
5858
raise excinfo.value
5959

6060
def pytest_configure(config):
61-
config.option.capture = 'no' # allow print statements to show up in the console
61+
config.option.capture = "no" # allow print statements to show up in the console
6262
config.option.log_cli = True # show log messages in the console
6363
config.option.log_level = "INFO" # set the log level to INFO
6464

@@ -70,8 +70,3 @@ def pytest_configure(config):
7070
@pytest.fixture
7171
def catch_cli_exceptions():
7272
return CATCH_CLI_EXCEPTIONS
73-
74-
75-
def show_cli_trace(result):
76-
"Used in testing to show traceback of CLI output"
77-
return "".join(traceback.format_exception(*result.exc_info))

example-specs/task/nipype/afni/center_mass.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ tests:
9191
automask:
9292
# type=bool|default=False: Generate the mask automatically
9393
set_cm:
94-
# type=tuple|default=(<traits.trait_types.Float object at 0x1150ec450>, <traits.trait_types.Float object at 0x1150ec550>, <traits.trait_types.Float object at 0x1150ec5d0>): After computing the center of mass, set the origin fields in the header so that the center of mass will be at (x,y,z) in DICOM coords.
94+
# type=tuple|default=None: After computing the center of mass, set the origin fields in the header so that the center of mass will be at (x,y,z) in DICOM coords.
9595
local_ijk:
9696
# type=bool|default=False: Output values as (i,j,k) in local orientation
9797
roi_vals:

example-specs/task/nipype/afni/dot.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ tests:
8585
mask:
8686
# type=file|default=<undefined>: Use this dataset as a mask
8787
mrange:
88-
# type=tuple|default=(<traits.trait_types.Float object at 0x1150eeb90>, <traits.trait_types.Float object at 0x1150eea90>): Means to further restrict the voxels from 'mset' so thatonly those mask values within this range (inclusive) willbe used.
88+
# type=tuple|default=None: Means to further restrict the voxels from 'mset' so thatonly those mask values within this range (inclusive) willbe used.
8989
demean:
9090
# type=bool|default=False: Remove the mean from each volume prior to computing the correlation
9191
docor:

example-specs/task/nipype/afni/one_d_tool_py.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ tests:
8282
show_censor_count:
8383
# type=bool|default=False: display the total number of censored TRs Note : if input is a valid xmat.1D dataset, then the count will come from the header. Otherwise the input is assumed to be a binary censorfile, and zeros are simply counted.
8484
censor_motion:
85-
# type=tuple|default=(<traits.trait_types.Float object at 0x115116ed0>, <nipype.interfaces.base.traits_extension.File object at 0x115116f90>): Tuple of motion limit and outfile prefix. need to also set set_nruns -r set_run_lengths
85+
# type=tuple|default=None: Tuple of motion limit and outfile prefix. need to also set set_nruns -r set_run_lengths
8686
censor_prev_TR:
8787
# type=bool|default=False: for each censored TR, also censor previous
8888
show_trs_uncensored:

example-specs/task/nipype/afni/qwarp.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ tests:
193193
wball:
194194
# type=list|default=[]: "``-wball x y z r f`` Enhance automatic weight from '-useweight' by a factor of 1+f\*Gaussian(FWHM=r) centered in the base image at DICOM coordinates (x,y,z) and with radius 'r'. The goal of this option is to try and make the alignment better in a specific part of the brain. Example: -wball 0 14 6 30 40 to emphasize the thalamic area (in MNI/Talairach space). * The 'r' parameter must be positive! * The 'f' parameter must be between 1 and 100 (inclusive). * '-wball' does nothing if you input your own weight with the '-weight' option. * '-wball' does change the binary weight created by the '-noweight' option. * You can only use '-wball' once in a run of 3dQwarp. **The effect of '-wball' is not dramatic.** The example above makes the average brain image across a collection of subjects a little sharper in the thalamic area, which might have some small value. If you care enough about alignment to use '-wball', then you should examine the results from 3dQwarp for each subject, to see if the alignments are good enough for your purposes.
195195
wmask:
196-
# type=tuple|default=(<nipype.interfaces.base.traits_extension.File object at 0x115018350>, <traits.trait_types.Float object at 0x1150183d0>): Similar to '-wball', but here, you provide a dataset 'ws' that indicates where to increase the weight. * The 'ws' dataset must be on the same 3D grid as the base dataset. * 'ws' is treated as a mask -- it only matters where it is nonzero -- otherwise, the values inside are not used. * After 'ws' comes the factor 'f' by which to increase the automatically computed weight. Where 'ws' is nonzero, the weighting will be multiplied by (1+f). * As with '-wball', the factor 'f' should be between 1 and 100.
196+
# type=tuple|default=None: Similar to '-wball', but here, you provide a dataset 'ws' that indicates where to increase the weight. * The 'ws' dataset must be on the same 3D grid as the base dataset. * 'ws' is treated as a mask -- it only matters where it is nonzero -- otherwise, the values inside are not used. * After 'ws' comes the factor 'f' by which to increase the automatically computed weight. Where 'ws' is nonzero, the weighting will be multiplied by (1+f). * As with '-wball', the factor 'f' should be between 1 and 100.
197197
out_weight_file:
198198
# type=file|default=<undefined>: Write the weight volume to disk as a dataset
199199
blur:

example-specs/task/nipype/afni/qwarp_plus_minus.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ tests:
129129
wball:
130130
# type=list|default=[]: "``-wball x y z r f`` Enhance automatic weight from '-useweight' by a factor of 1+f\*Gaussian(FWHM=r) centered in the base image at DICOM coordinates (x,y,z) and with radius 'r'. The goal of this option is to try and make the alignment better in a specific part of the brain. Example: -wball 0 14 6 30 40 to emphasize the thalamic area (in MNI/Talairach space). * The 'r' parameter must be positive! * The 'f' parameter must be between 1 and 100 (inclusive). * '-wball' does nothing if you input your own weight with the '-weight' option. * '-wball' does change the binary weight created by the '-noweight' option. * You can only use '-wball' once in a run of 3dQwarp. **The effect of '-wball' is not dramatic.** The example above makes the average brain image across a collection of subjects a little sharper in the thalamic area, which might have some small value. If you care enough about alignment to use '-wball', then you should examine the results from 3dQwarp for each subject, to see if the alignments are good enough for your purposes.
131131
wmask:
132-
# type=tuple|default=(<nipype.interfaces.base.traits_extension.File object at 0x115018350>, <traits.trait_types.Float object at 0x1150183d0>): Similar to '-wball', but here, you provide a dataset 'ws' that indicates where to increase the weight. * The 'ws' dataset must be on the same 3D grid as the base dataset. * 'ws' is treated as a mask -- it only matters where it is nonzero -- otherwise, the values inside are not used. * After 'ws' comes the factor 'f' by which to increase the automatically computed weight. Where 'ws' is nonzero, the weighting will be multiplied by (1+f). * As with '-wball', the factor 'f' should be between 1 and 100.
132+
# type=tuple|default=None: Similar to '-wball', but here, you provide a dataset 'ws' that indicates where to increase the weight. * The 'ws' dataset must be on the same 3D grid as the base dataset. * 'ws' is treated as a mask -- it only matters where it is nonzero -- otherwise, the values inside are not used. * After 'ws' comes the factor 'f' by which to increase the automatically computed weight. Where 'ws' is nonzero, the weighting will be multiplied by (1+f). * As with '-wball', the factor 'f' should be between 1 and 100.
133133
out_weight_file:
134134
# type=file|default=<undefined>: Write the weight volume to disk as a dataset
135135
blur:

example-specs/task/nipype/afni/t_corr_map.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ tests:
164164
polort:
165165
# type=int|default=0:
166166
bandpass:
167-
# type=tuple|default=(<traits.trait_types.Float object at 0x114ff9c90>, <traits.trait_types.Float object at 0x114ff9f90>):
167+
# type=tuple|default=None:
168168
regress_out_timeseries:
169169
# type=file|default=<undefined>:
170170
blur_fwhm:

0 commit comments

Comments
 (0)