Skip to content

Commit efe61ec

Browse files
committed
doc(fix): make sure documentation builds locally
1 parent 240b29f commit efe61ec

File tree

5 files changed

+45
-44
lines changed

5 files changed

+45
-44
lines changed

docs/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ Information on specific functions, classes, and methods.
77
:glob:
88

99
api/sdcflows.interfaces
10+
api/sdcflows.models
1011
api/sdcflows.viz
1112
api/sdcflows.workflows

sdcflows/models/fieldmap.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html#two-phase-images-and-two-magnitude-images>`__.
1616
Some scanners produce one ``phasediff`` map, where the drift between the two echos has
1717
already been calulated (see `the corresponding section of BIDS
18-
<https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html#case-1-phase-difference-map-and-at-least-one-magnitude-image>__`).
18+
<https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html#case-1-phase-difference-map-and-at-least-one-magnitude-image>`__).
1919
2020
.. _sdc_direct_b0 :
2121
@@ -56,30 +56,30 @@ def init_fmap_wf(omp_nthreads, mode="phase-diff", name="fmap_wf"):
5656
:graph2use: orig
5757
:simple_form: yes
5858
59-
from sdcflows.workflows.fmap import init_fmap_wf
59+
from sdcflows.models.fieldmap import init_fmap_wf
6060
wf = init_fmap_wf(omp_nthreads=6)
6161
6262
Parameters
6363
----------
64-
omp_nthreads : int
64+
omp_nthreads : :obj:`int`
6565
Maximum number of threads an individual process may use.
66-
name : str
66+
name : :obj:`str`
6767
Unique name of this workflow.
6868
6969
Inputs
7070
------
71-
magnitude : str
71+
magnitude : :obj:`str`
7272
Path to the corresponding magnitude image for anatomical reference.
73-
fieldmap : str
73+
fieldmap : :obj:`str`
7474
Path to the fieldmap acquisition (``*_fieldmap.nii[.gz]`` of BIDS).
7575
7676
Outputs
7777
-------
78-
fmap : str
78+
fmap : :obj:`str`
7979
Path to the estimated fieldmap.
80-
fmap_ref : str
80+
fmap_ref : :obj:`str`
8181
Path to a preprocessed magnitude image reference.
82-
fmap_mask : str
82+
fmap_mask : :obj:`str`
8383
Path to a binary brain mask corresponding to the ``fmap`` and ``fmap_ref``
8484
pair.
8585
@@ -167,26 +167,26 @@ def init_magnitude_wf(omp_nthreads, name="magnitude_wf"):
167167
:graph2use: orig
168168
:simple_form: yes
169169
170-
from sdcflows.workflows.fmap import init_magnitude_wf
170+
from sdcflows.models.fieldmap import init_magnitude_wf
171171
wf = init_magnitude_wf(omp_nthreads=6)
172172
173173
Parameters
174174
----------
175-
omp_nthreads : int
175+
omp_nthreads : :obj:`int`
176176
Maximum number of threads an individual process may use
177-
name : str
177+
name : :obj:`str`
178178
Name of workflow (default: ``prepare_magnitude_w``)
179179
180180
Inputs
181181
------
182-
magnitude : pathlike
182+
magnitude : :obj:`os.PathLike`
183183
Path to the corresponding magnitude path(s).
184184
185185
Outputs
186186
-------
187-
fmap_ref : pathlike
187+
fmap_ref : :obj:`os.PathLike`
188188
Path to the fieldmap reference calculated in this workflow.
189-
fmap_mask : pathlike
189+
fmap_mask : :obj:`os.PathLike`
190190
Path to a binary brain mask corresponding to the reference above.
191191
192192
"""
@@ -239,30 +239,30 @@ def init_fmap_postproc_wf(
239239
:graph2use: orig
240240
:simple_form: yes
241241
242-
from sdcflows.workflows.fmap import init_fmap_postproc_wf
242+
from sdcflows.models.fieldmap import init_fmap_postproc_wf
243243
wf = init_fmap_postproc_wf(omp_nthreads=6)
244244
245245
Parameters
246246
----------
247-
omp_nthreads : int
247+
omp_nthreads : :obj:`int`
248248
Maximum number of threads an individual process may use
249-
median_kernel_size : int
249+
median_kernel_size : :obj:`int`
250250
Size of the kernel when smoothing is done with a median filter.
251-
name : str
251+
name : :obj:`str`
252252
Name of workflow (default: ``fmap_postproc_wf``)
253253
254254
Inputs
255255
------
256-
fmap : pathlike
256+
fmap : :obj:`os.PathLike`
257257
Fully preprocessed :math:`B_0` field nonuniformity map (aka *fieldmap*).
258-
fmap_ref : pathlike
258+
fmap_ref : :obj:`os.PathLike`
259259
A preprocessed magnitude/reference image for the fieldmap.
260-
fmap_mask : pathlike
260+
fmap_mask : :obj:`os.PathLike`
261261
A brain binary mask corresponding to this fieldmap.
262262
263263
Outputs
264264
-------
265-
out_fmap : pathlike
265+
out_fmap : :obj:`os.PathLike`
266266
Postprocessed fieldmap.
267267
268268
"""
@@ -336,28 +336,28 @@ def init_phdiff_wf(omp_nthreads, name="phdiff_wf"):
336336
:graph2use: orig
337337
:simple_form: yes
338338
339-
from sdcflows.workflows.phdiff import init_phdiff_wf
339+
from sdcflows.models.fieldmap import init_phdiff_wf
340340
wf = init_phdiff_wf(omp_nthreads=1)
341341
342342
Parameters
343343
----------
344-
omp_nthreads : int
344+
omp_nthreads : :obj:`int`
345345
Maximum number of threads an individual process may use
346346
347347
Inputs
348348
------
349-
magnitude : :obj:`os.pathlike`
349+
magnitude : :obj:`os.PathLike`
350350
A reference magnitude image preprocessed elsewhere.
351-
phase : list of tuple(os.pathlike, dict)
351+
phase : :obj:`list` of :obj:`tuple` of (:obj:`os.PathLike`, :obj:`dict`)
352352
List containing one GRE phase-difference map with its corresponding metadata
353353
(requires ``EchoTime1`` and ``EchoTime2``), or the phase maps for the two
354354
subsequent echoes, with their metadata (requires ``EchoTime``).
355-
mask : :obj:`os.pathlike`
355+
mask : :obj:`os.PathLike`
356356
A brain mask calculated from the magnitude image.
357357
358358
Outputs
359359
-------
360-
fieldmap : :obj:`os.pathlike`
360+
fieldmap : :obj:`os.PathLike`
361361
The estimated fieldmap in Hz. # TODO: write metadata "Units"
362362
363363
References
@@ -448,7 +448,7 @@ def _demean(in_file, in_mask=None, usemode=True):
448448
449449
Parameters
450450
----------
451-
usemode : bool
451+
usemode : :obj:`bool`
452452
Use the mode instead of the median (should be even more robust
453453
against outliers).
454454

sdcflows/models/pepolar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def init_topup_wf(omp_nthreads=1, debug=False, name="pepolar_estimate_wf"):
3131
:graph2use: orig
3232
:simple_form: yes
3333
34-
from sdcflows.models.pepolar import init_3dQwarp_wf
35-
wf = init_3dQwarp_wf()
34+
from sdcflows.models.pepolar import init_topup_wf
35+
wf = init_topup_wf()
3636
3737
Parameters
3838
----------
@@ -132,7 +132,7 @@ def init_3dQwarp_wf(pe_dir, omp_nthreads=1, name="pepolar_estimate_wf"):
132132
:simple_form: yes
133133
134134
from sdcflows.models.pepolar import init_3dQwarp_wf
135-
wf = init_3dQwarp_wf()
135+
wf = init_3dQwarp_wf(pe_dir="j")
136136
137137
Parameters
138138
----------

sdcflows/models/syn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def init_syn_sdc_wf(omp_nthreads, epi_pe=None, atlas_threshold=3, name="syn_sdc_
6363
:graph2use: orig
6464
:simple_form: yes
6565
66-
from sdcflows.workflows.syn import init_syn_sdc_wf
66+
from sdcflows.models.syn import init_syn_sdc_wf
6767
wf = init_syn_sdc_wf(
6868
epi_pe="j",
6969
omp_nthreads=8)

sdcflows/workflows/unwarp.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,32 +28,32 @@ def init_sdc_unwarp_wf(omp_nthreads, debug, name='sdc_unwarp_wf'):
2828
2929
Parameters
3030
----------
31-
omp_nthreads : int
31+
omp_nthreads : :obj:`int`
3232
Maximum number of threads an individual process may use.
33-
debug : bool
33+
debug : :obj:`bool`
3434
Run fast configurations of registrations.
35-
name : str
35+
name : :obj:`str`
3636
Unique name of this workflow.
3737
3838
Inputs
3939
------
40-
in_warp : os.pathlike
40+
in_warp : :obj:`os.PathLike`
4141
The :abbr:`DFM (displacements field map)` that corrects for
4242
susceptibility-derived distortions estimated elsewhere.
43-
in_reference : os.pathlike
43+
in_reference : :obj:`os.PathLike`
4444
the reference image to be unwarped.
45-
in_reference_mask : os.pathlike
45+
in_reference_mask : :obj:`os.PathLike`
4646
the reference image mask to be unwarped
4747
4848
Outputs
4949
-------
50-
out_reference : str
50+
out_reference : :obj:`str`
5151
the ``in_reference`` after unwarping
52-
out_reference_brain : str
52+
out_reference_brain : :obj:`str`
5353
the ``in_reference`` after unwarping and skullstripping
54-
out_warp : str
54+
out_warp : :obj:`str`
5555
the ``in_warp`` field is forwarded for compatibility
56-
out_mask : str
56+
out_mask : :obj:`str`
5757
mask of the unwarped input file
5858
5959
"""

0 commit comments

Comments
 (0)