Skip to content

Commit a361b0e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9c9ef1e commit a361b0e

File tree

10 files changed

+26
-27
lines changed

10 files changed

+26
-27
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,3 @@ _version.py
139139

140140
# Mac Garbage
141141
.DS_Store
142-

pydra/tasks/mrtrix3/v3_1/amp2response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Amp2Response(shell.Task["Amp2Response.Outputs"]):
8686
shells: list[float] | None = shell.arg(
8787
default=None,
8888
argstr="-shells",
89-
help="""specify one or more b-values to use during processing, as a comma-separated list of the desired approximate b-values (b-values are clustered to allow for small deviations). Note that some commands are incompatible with multiple b-values, and will report an error if more than one b-value is provided.
89+
help="""specify one or more b-values to use during processing, as a comma-separated list of the desired approximate b-values (b-values are clustered to allow for small deviations). Note that some commands are incompatible with multiple b-values, and will report an error if more than one b-value is provided.
9090
WARNING: note that, even though the b=0 volumes are never referred to as a 'shell' in the literature, they still have to be explicitly included in the list of b-values as provided to the -shell option! Several algorithms that include the b=0 volumes in their computations may otherwise return an undesired result.""",
9191
sep=",",
9292
)

pydra/tasks/mrtrix3/v3_1/amp2sh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Amp2Sh(shell.Task["Amp2Sh.Outputs"]):
9595
shells: list[float] | None = shell.arg(
9696
default=None,
9797
argstr="-shells",
98-
help="""specify one or more b-values to use during processing, as a comma-separated list of the desired approximate b-values (b-values are clustered to allow for small deviations). Note that some commands are incompatible with multiple b-values, and will report an error if more than one b-value is provided.
98+
help="""specify one or more b-values to use during processing, as a comma-separated list of the desired approximate b-values (b-values are clustered to allow for small deviations). Note that some commands are incompatible with multiple b-values, and will report an error if more than one b-value is provided.
9999
WARNING: note that, even though the b=0 volumes are never referred to as a 'shell' in the literature, they still have to be explicitly included in the list of b-values as provided to the -shell option! Several algorithms that include the b=0 volumes in their computations may otherwise return an undesired result.""",
100100
sep=",",
101101
)

pydra/tasks/mrtrix3/v3_1/dirstat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class DirStat(shell.Task["DirStat.Outputs"]):
107107
shells: list[float] | None = shell.arg(
108108
default=None,
109109
argstr="-shells",
110-
help="""specify one or more b-values to use during processing, as a comma-separated list of the desired approximate b-values (b-values are clustered to allow for small deviations). Note that some commands are incompatible with multiple b-values, and will report an error if more than one b-value is provided.
110+
help="""specify one or more b-values to use during processing, as a comma-separated list of the desired approximate b-values (b-values are clustered to allow for small deviations). Note that some commands are incompatible with multiple b-values, and will report an error if more than one b-value is provided.
111111
WARNING: note that, even though the b=0 volumes are never referred to as a 'shell' in the literature, they still have to be explicitly included in the list of b-values as provided to the -shell option! Several algorithms that include the b=0 volumes in their computations may otherwise return an undesired result.""",
112112
sep=",",
113113
)

pydra/tasks/mrtrix3/v3_1/dwi2fod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class Dwi2Fod(shell.Task["Dwi2Fod.Outputs"]):
108108
shells: list[float] | None = shell.arg(
109109
default=None,
110110
argstr="-shells",
111-
help="""specify one or more b-values to use during processing, as a comma-separated list of the desired approximate b-values (b-values are clustered to allow for small deviations). Note that some commands are incompatible with multiple b-values, and will report an error if more than one b-value is provided.
111+
help="""specify one or more b-values to use during processing, as a comma-separated list of the desired approximate b-values (b-values are clustered to allow for small deviations). Note that some commands are incompatible with multiple b-values, and will report an error if more than one b-value is provided.
112112
WARNING: note that, even though the b=0 volumes are never referred to as a 'shell' in the literature, they still have to be explicitly included in the list of b-values as provided to the -shell option! Several algorithms that include the b=0 volumes in their computations may otherwise return an undesired result.""",
113113
sep=",",
114114
)

pydra/tasks/mrtrix3/v3_1/dwidenoise.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ class DwiDenoise(shell.Task["DwiDenoise.Outputs"]):
8383
estimator: str | None = shell.arg(
8484
default=None,
8585
argstr="-estimator",
86-
help="""Select the noise level estimator (default = Exp2), either:
87-
* Exp1: the original estimator used in Veraart et al. (2016), or
86+
help="""Select the noise level estimator (default = Exp2), either:
87+
* Exp1: the original estimator used in Veraart et al. (2016), or
8888
* Exp2: the improved estimator introduced in Cordero-Grande et al. (2019).""",
8989
allowed_values=["exp1", "exp2"],
9090
)

pydra/tasks/mrtrix3/v3_1/dwiextract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class DwiExtract(shell.Task["DwiExtract.Outputs"]):
9494
shells: list[float] | None = shell.arg(
9595
default=None,
9696
argstr="-shells",
97-
help="""specify one or more b-values to use during processing, as a comma-separated list of the desired approximate b-values (b-values are clustered to allow for small deviations). Note that some commands are incompatible with multiple b-values, and will report an error if more than one b-value is provided.
97+
help="""specify one or more b-values to use during processing, as a comma-separated list of the desired approximate b-values (b-values are clustered to allow for small deviations). Note that some commands are incompatible with multiple b-values, and will report an error if more than one b-value is provided.
9898
WARNING: note that, even though the b=0 volumes are never referred to as a 'shell' in the literature, they still have to be explicitly included in the list of b-values as provided to the -shell option! Several algorithms that include the b=0 volumes in their computations may otherwise return an undesired result.""",
9999
sep=",",
100100
)

pydra/tasks/mrtrix3/v3_1/fod2dec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Fod2Dec(shell.Task["Fod2Dec.Outputs"]):
5151
contrast: ImageIn | None = shell.arg(
5252
default=None,
5353
argstr="-contrast",
54-
help="""Weight the computed DEC map by the provided image contrast. If the contrast has a different image grid, the DEC map is first resliced and renormalised. To achieve panchromatic sharpening, provide an image with a higher spatial resolution than the input FOD image; e.g., a T1 anatomical volume. Only the DEC is subject to the mask, so as to allow for partial colouring of the contrast image.
54+
help="""Weight the computed DEC map by the provided image contrast. If the contrast has a different image grid, the DEC map is first resliced and renormalised. To achieve panchromatic sharpening, provide an image with a higher spatial resolution than the input FOD image; e.g., a T1 anatomical volume. Only the DEC is subject to the mask, so as to allow for partial colouring of the contrast image.
5555
Default when this option is *not* provided: integral of input FOD, subject to the same mask/threshold as used for DEC computation.""",
5656
)
5757
lum: bool = shell.arg(

pydra/tasks/mrtrix3/v3_1/mredit.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ class MrEdit(shell.Task["MrEdit.Outputs"]):
5858
help="""fill one or more planes on a particular image axis""",
5959
sep=" ",
6060
)
61-
sphere: MultiInputObj[tuple[list[float], list[float], list[float]]] | None = (
62-
shell.arg(
63-
default=None,
64-
argstr="-sphere",
65-
help="""draw a sphere with radius in mm""",
66-
sep=" ",
67-
)
61+
sphere: MultiInputObj[
62+
tuple[list[float], list[float], list[float]]
63+
] | None = shell.arg(
64+
default=None,
65+
argstr="-sphere",
66+
help="""draw a sphere with radius in mm""",
67+
sep=" ",
6868
)
6969
voxel: MultiInputObj[tuple[list[float], list[float]]] | None = shell.arg(
7070
default=None,

pydra/tasks/mrtrix3/v3_1/mrregister.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -427,17 +427,17 @@ class Outputs(shell.Outputs):
427427
path_template="transformed.mif",
428428
help="""image1 after registration transformed and regridded to the space of image2. Note that -transformed needs to be repeated for each contrast if multi-contrast registration is used.""",
429429
)
430-
transformed_midway: MultiInputObj[tuple[ImageOut, ImageOut]] | bool | None = (
431-
shell.outarg(
432-
default=None,
433-
argstr="-transformed_midway",
434-
path_template=(
435-
"transformed_midway0.mif",
436-
"transformed_midway1.mif",
437-
),
438-
help="""image1 and image2 after registration transformed and regridded to the midway space. Note that -transformed_midway needs to be repeated for each contrast if multi-contrast registration is used.""",
439-
sep=" ",
440-
)
430+
transformed_midway: MultiInputObj[
431+
tuple[ImageOut, ImageOut]
432+
] | bool | None = shell.outarg(
433+
default=None,
434+
argstr="-transformed_midway",
435+
path_template=(
436+
"transformed_midway0.mif",
437+
"transformed_midway1.mif",
438+
),
439+
help="""image1 and image2 after registration transformed and regridded to the midway space. Note that -transformed_midway needs to be repeated for each contrast if multi-contrast registration is used.""",
440+
sep=" ",
441441
)
442442
rigid: File | bool | None = shell.outarg(
443443
default=None,

0 commit comments

Comments
 (0)