Skip to content

Commit 2af28d1

Browse files
authored
Merge pull request #17 from nipype/develop
Bug fix of doctest generation
2 parents 5a04f9d + 72dcec9 commit 2af28d1

File tree

231 files changed

+810
-633
lines changed

Some content is hidden

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

231 files changed

+810
-633
lines changed

.github/workflows/ci-cd.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -122,31 +122,17 @@ jobs:
122122
matrix:
123123
repo:
124124
- afni
125-
- ants
126-
- fsl
127-
- freesurfer
128-
env:
129-
SECRET: ""
125+
# - ants
126+
# - fsl
127+
# - freesurfer
128+
# - mriqc
130129
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
144130

145131
- name: Trigger post-release on downstream repos
146-
if: github.event_name == 'release' && env.SECRET
132+
if: github.event_name == 'release'
147133
run: |
148-
curl -XPOST -u "${{ env.SECRET }}" -H "Accept: application/vnd.github.everest-preview+json" \
134+
curl -XPOST -u "${{ env.POST_RELEASE_PAT }}" -H "Accept: application/vnd.github.everest-preview+json" \
149135
"https://api.github.com/repos/nipype/pydra-${{ matrix.repo }}/dispatches" \
150136
-d '{"event_type": "create-post-release"}'
151137
env:
152-
PAT: ${{ env.SECRET }}
138+
PAT: ${{ env.POST_RELEASE_PAT }}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ doctests:
142142
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
143143
# If the field is of file-format type and the value is None, then the
144144
# '.mock()' method of the corresponding class is used instead.
145-
in_file_a:
145+
in_file_a: '"functional.nii"'
146146
# type=file|default=<undefined>: input file A
147-
in_file_b:
147+
in_file_b: '"structural.nii"'
148148
# type=file|default=<undefined>: input file B
149149
out_file: ' "out.mask_ae_overlap.txt"'
150150
# type=file: output file

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ doctests:
137137
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
138138
# If the field is of file-format type and the value is None, then the
139139
# '.mock()' method of the corresponding class is used instead.
140-
in_file:
140+
in_file: '"afni_output.3D"'
141141
# type=file|default=<undefined>: input file to 3dAFNItoNIFTI
142142
out_file: ' "afni_output.nii"'
143143
# type=file: output file

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ doctests:
203203
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
204204
# If the field is of file-format type and the value is None, then the
205205
# '.mock()' method of the corresponding class is used instead.
206-
anat:
206+
anat: '"structural.nii"'
207207
# type=file|default=<undefined>: name of structural dataset
208-
in_file:
208+
in_file: '"functional.nii"'
209209
# type=file|default=<undefined>: EPI dataset to align
210210
epi_base: '0'
211211
# type=traitcompound|default=None: the epi base used in alignmentshould be one of (0/mean/median/max/subbrick#)

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,12 @@ doctests:
331331
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
332332
# If the field is of file-format type and the value is None, then the
333333
# '.mock()' method of the corresponding class is used instead.
334-
in_file:
334+
in_file: '"functional.nii"'
335335
# type=file|default=<undefined>: input file to 3dAllineate
336336
out_file: '"functional_allineate.nii"'
337337
# type=file: output image file name
338338
# type=file|default=<undefined>: output file from 3dAllineate
339-
in_matrix:
339+
in_matrix: '"cmatrix.mat"'
340340
# type=file|default=<undefined>: matrix to align input file
341341
imports:
342342
# list[nipype2pydra.task.base.importstatement] - list import statements required by the test, with each list item
@@ -349,9 +349,9 @@ doctests:
349349
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
350350
# If the field is of file-format type and the value is None, then the
351351
# '.mock()' method of the corresponding class is used instead.
352-
in_file:
352+
in_file: '"functional.nii"'
353353
# type=file|default=<undefined>: input file to 3dAllineate
354-
reference:
354+
reference: '"structural.nii"'
355355
# type=file|default=<undefined>: file to be used as reference, the first volume will be used if not given the reference will be the first volume of in_file.
356356
allcostx: '"out.allcostX.txt"'
357357
# type=file: Compute and print ALL available cost functionals for the un-warped inputs
@@ -367,9 +367,9 @@ doctests:
367367
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
368368
# If the field is of file-format type and the value is None, then the
369369
# '.mock()' method of the corresponding class is used instead.
370-
in_file:
370+
in_file: '"functional.nii"'
371371
# type=file|default=<undefined>: input file to 3dAllineate
372-
reference:
372+
reference: '"structural.nii"'
373373
# type=file|default=<undefined>: file to be used as reference, the first volume will be used if not given the reference will be the first volume of in_file.
374374
nwarp_fixmot: '["X", "Y"]'
375375
# type=list|default=[]: To fix motion along directions.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ doctests:
151151
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
152152
# If the field is of file-format type and the value is None, then the
153153
# '.mock()' method of the corresponding class is used instead.
154-
in_file:
154+
in_file: '"functional.nii"'
155155
# type=file|default=<undefined>: timeseries x space (volume or surface) file
156156
polort: '-1'
157157
# type=int|default=0: Remove polynomical trend of order m or -1 for no detrending
158158
eta2: 'True'
159159
# type=bool|default=False: eta^2 similarity
160-
mask:
160+
mask: '"mask.nii"'
161161
# type=file|default=<undefined>: mask of voxels
162162
mask_only_targets: 'True'
163163
# type=bool|default=False: use mask only on targets voxels

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ doctests:
125125
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
126126
# If the field is of file-format type and the value is None, then the
127127
# '.mock()' method of the corresponding class is used instead.
128-
in_file:
128+
in_file: '"structural.nii"'
129129
# type=file|default=<undefined>: Original anatomical volume (+orig).The skull is removed by this scriptunless instructed otherwise (-no_ss).
130130
no_ss: 'True'
131131
# type=bool|default=False: Do not strip skull of input data set (because skull has already been removed or because template still has the skull) NOTE: The ``-no_ss`` option is not all that optional. Here is a table of when you should and should not use ``-no_ss`` +------------------+------------+---------------+ | Dataset | Template | +==================+============+===============+ | | w/ skull | wo/ skull | +------------------+------------+---------------+ | WITH skull | ``-no_ss`` | xxx | +------------------+------------+---------------+ | WITHOUT skull | No Cigar | ``-no_ss`` | +------------------+------------+---------------+ Template means: Your template of choice Dset. means: Your anatomical dataset ``-no_ss`` means: Skull stripping should not be attempted on Dset xxx means: Don't put anything, the script will strip Dset No Cigar means: Don't try that combination, it makes no sense.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ doctests:
144144
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
145145
# If the field is of file-format type and the value is None, then the
146146
# '.mock()' method of the corresponding class is used instead.
147-
in_file:
147+
in_file: '"structural.nii"'
148148
# type=file|default=<undefined>: input file
149149
padding: '5'
150150
# type=int|default=0: Number of extra voxels to pad on each side of box

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ doctests:
145145
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
146146
# If the field is of file-format type and the value is None, then the
147147
# '.mock()' method of the corresponding class is used instead.
148-
in_file:
148+
in_file: '"functional.nii"'
149149
# type=file|default=<undefined>: input file to 3dAutomask
150150
dilate: '1'
151151
# type=int|default=0: dilate the mask outwards

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ doctests:
139139
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
140140
# If the field is of file-format type and the value is None, then the
141141
# '.mock()' method of the corresponding class is used instead.
142-
in_file:
142+
in_file: '"functional.nii"'
143143
# type=file|default=<undefined>: input file to 3daxialize
144144
out_file: '"axialized.nii"'
145145
# type=file: output file

0 commit comments

Comments
 (0)