Skip to content

Commit 444a08a

Browse files
committed
updated generated code from latest dev branch
1 parent 715b896 commit 444a08a

File tree

206 files changed

+1688
-5798
lines changed

Some content is hidden

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

206 files changed

+1688
-5798
lines changed

pydra/tasks/mrtrix3/v3_1/afdconnectivity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated from MRtrix C++ command with '__print_pydra_code__' secret option
22

3-
import typing as ty
3+
from typing import Any
44
from pathlib import Path # noqa: F401
55
from fileformats.generic import File, Directory # noqa: F401
66
from fileformats.vendor.mrtrix3.medimage import ImageIn, ImageOut, Tracks # noqa: F401
@@ -20,7 +20,7 @@ class AfdConnectivity(shell.Task["AfdConnectivity.Outputs"]):
2020
2121
Note that the sum of the AFD is normalised by streamline length to account for subject differences in fibre bundle length. This normalisation results in a measure that is more related to the cross-sectional volume of the tract (and therefore 'connectivity'). Note that SIFT-ed tract count is a superior measure because it is unaffected by tangential yet unrelated fibres. However, AFD connectivity may be used as a substitute when Anatomically Constrained Tractography is not possible due to uncorrectable EPI distortions, and SIFT may therefore not be as effective.
2222
23-
Longer discussion regarding this command can additionally be found at: https://mrtrix.readthedocs.io/en/3.0.4/concepts/afd_connectivity.html (as well as in the relevant reference).
23+
Longer discussion regarding this command can additionally be found at: https://mrtrix.readthedocs.io/en/3.0.7/concepts/afd_connectivity.html (as well as in the relevant reference).
2424
2525
2626
References
@@ -34,7 +34,7 @@ class AfdConnectivity(shell.Task["AfdConnectivity.Outputs"]):
3434
MRtrix
3535
------
3636
37-
Version:3.0.4-1402-gd28b95cd, built Aug 22 2025
37+
Version:3.0.7-1578-g23fff5b8-dirty, built Nov 28 2025
3838
3939
Author: David Raffelt (david.raffelt@florey.edu.au) and Robert E. Smith (robert.smith@florey.edu.au)
4040

pydra/tasks/mrtrix3/v3_1/amp2response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated from MRtrix C++ command with '__print_pydra_code__' secret option
22

3-
import typing as ty
3+
from typing import Any
44
from pathlib import Path # noqa: F401
55
from fileformats.generic import File, Directory # noqa: F401
66
from fileformats.vendor.mrtrix3.medimage import ImageIn, ImageOut, Tracks # noqa: F401
@@ -26,7 +26,7 @@ class Amp2Response(shell.Task["Amp2Response.Outputs"]):
2626
MRtrix
2727
------
2828
29-
Version:3.0.4-1402-gd28b95cd, built Aug 22 2025
29+
Version:3.0.7-1578-g23fff5b8-dirty, built Nov 28 2025
3030
3131
Author: Robert E. Smith (robert.smith@florey.edu.au) and J-Donald Tournier (jdtournier@gmail.com)
3232
@@ -59,7 +59,7 @@ class Amp2Response(shell.Task["Amp2Response.Outputs"]):
5959
position=2,
6060
help="""the mask containing the voxels from which to estimate the response function""",
6161
)
62-
directions_image: ImageIn = shell.arg(
62+
fibre_directions: ImageIn = shell.arg(
6363
argstr="",
6464
position=3,
6565
help="""a 4D image containing the estimated fibre directions""",

pydra/tasks/mrtrix3/v3_1/amp2sh.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated from MRtrix C++ command with '__print_pydra_code__' secret option
22

3-
import typing as ty
3+
from typing import Any
44
from pathlib import Path # noqa: F401
55
from fileformats.generic import File, Directory # noqa: F401
66
from fileformats.vendor.mrtrix3.medimage import ImageIn, ImageOut, Tracks # noqa: F401
@@ -12,10 +12,10 @@
1212
class Amp2Sh(shell.Task["Amp2Sh.Outputs"]):
1313
"""The spherical harmonic decomposition is calculated by least-squares linear fitting to the amplitude data.
1414
15-
The directions can be defined either as a DW gradient scheme (for example to compute the SH representation of the DW signal), a set of [az el] pairs as output by the dirgen command, or a set of [ x y z ] directions in Cartesian coordinates. The DW gradient scheme or direction set can be supplied within the input image header or using the -gradient or -directions option. Note that if a direction set and DW gradient scheme can be found, the direction set will be used by default.
15+
The directions can be defined either as a DW gradient scheme (for example to compute the SH representation of the DW signal), a set of [az in] pairs as output by the dirgen command, or a set of [ x y z ] directions in Cartesian coordinates. The DW gradient scheme or direction set can be supplied within the input image header or using the -gradient or -directions option. Note that if a direction set and DW gradient scheme can be found, the direction set will be used by default.
1616
1717
The spherical harmonic coefficients are stored according to the conventions described in the main documentation, which can be found at the following link:
18-
https://mrtrix.readthedocs.io/en/3.0.4/concepts/spherical_harmonics.html
18+
https://mrtrix.readthedocs.io/en/3.0.7/concepts/spherical_harmonics.html
1919
2020
2121
References
@@ -27,7 +27,7 @@ class Amp2Sh(shell.Task["Amp2Sh.Outputs"]):
2727
MRtrix
2828
------
2929
30-
Version:3.0.4-1402-gd28b95cd, built Aug 22 2025
30+
Version:3.0.7-1578-g23fff5b8-dirty, built Nov 28 2025
3131
3232
Author: J-Donald Tournier (jdtournier@gmail.com)
3333
@@ -70,7 +70,7 @@ class Amp2Sh(shell.Task["Amp2Sh.Outputs"]):
7070
directions: File | None = shell.arg(
7171
default=None,
7272
argstr="-directions",
73-
help="""the directions corresponding to the input amplitude image used to sample AFD. By default this option is not required providing the direction set is supplied in the amplitude image. This should be supplied as a list of directions [az el], as generated using the dirgen command, or as a list of [ x y z ] Cartesian coordinates.""",
73+
help="""the directions corresponding to the input amplitude image used to sample AFD. By default this option is not required providing the direction set is supplied in the amplitude image. This should be supplied as a list of directions [az in], as generated using the dirgen command, or as a list of [ x y z ] Cartesian coordinates.""",
7474
)
7575
rician: ImageIn | None = shell.arg(
7676
default=None,
@@ -101,10 +101,11 @@ class Amp2Sh(shell.Task["Amp2Sh.Outputs"]):
101101
)
102102

103103
# Stride options:
104-
strides: ty.Any = shell.arg(
104+
strides: ImageIn | list[int] | None = shell.arg(
105105
default=None,
106106
argstr="-strides",
107107
help="""specify the strides of the output data in memory; either as a comma-separated list of (signed) integers, or as a template image from which the strides shall be extracted and used. The actual strides produced will depend on whether the output image format can support it.""",
108+
sep=",",
108109
)
109110

110111
# Standard options

pydra/tasks/mrtrix3/v3_1/connectome2tck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated from MRtrix C++ command with '__print_pydra_code__' secret option
22

3-
import typing as ty
3+
from typing import Any
44
from pathlib import Path # noqa: F401
55
from fileformats.generic import File, Directory # noqa: F401
66
from fileformats.vendor.mrtrix3.medimage import ImageIn, ImageOut, Tracks # noqa: F401
@@ -68,7 +68,7 @@ class Connectome2Tck(shell.Task["Connectome2Tck.Outputs"]):
6868
MRtrix
6969
------
7070
71-
Version:3.0.4-1402-gd28b95cd, built Aug 22 2025
71+
Version:3.0.7-1578-g23fff5b8-dirty, built Nov 28 2025
7272
7373
Author: Robert E. Smith (robert.smith@florey.edu.au)
7474

pydra/tasks/mrtrix3/v3_1/connectomeedit.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated from MRtrix C++ command with '__print_pydra_code__' secret option
22

3-
import typing as ty
3+
from typing import Any
44
from pathlib import Path # noqa: F401
55
from fileformats.generic import File, Directory # noqa: F401
66
from fileformats.vendor.mrtrix3.medimage import ImageIn, ImageOut, Tracks # noqa: F401
@@ -20,7 +20,7 @@ class ConnectomeEdit(shell.Task["ConnectomeEdit.Outputs"]):
2020
MRtrix
2121
------
2222
23-
Version:3.0.4-1402-gd28b95cd, built Aug 22 2025
23+
Version:3.0.7-1578-g23fff5b8-dirty, built Nov 28 2025
2424
2525
Author: Matteo Frigo (matteo.frigo@inria.fr)
2626
@@ -43,7 +43,7 @@ class ConnectomeEdit(shell.Task["ConnectomeEdit.Outputs"]):
4343
executable = "connectomeedit"
4444

4545
# Arguments
46-
input: str = shell.arg(
46+
in_file: File = shell.arg(
4747
argstr="",
4848
position=1,
4949
help="""the input connectome.""",
@@ -60,11 +60,6 @@ class ConnectomeEdit(shell.Task["ConnectomeEdit.Outputs"]):
6060
"zero_diagonal",
6161
],
6262
)
63-
output: str = shell.arg(
64-
argstr="",
65-
position=3,
66-
help="""the output connectome.""",
67-
)
6863

6964
# Options
7065

@@ -102,4 +97,9 @@ class ConnectomeEdit(shell.Task["ConnectomeEdit.Outputs"]):
10297
)
10398

10499
class Outputs(shell.Outputs):
105-
pass
100+
out_file: File = shell.outarg(
101+
argstr="",
102+
position=3,
103+
path_template="out_file.txt",
104+
help="""the output connectome.""",
105+
)

pydra/tasks/mrtrix3/v3_1/connectomestats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated from MRtrix C++ command with '__print_pydra_code__' secret option
22

3-
import typing as ty
3+
from typing import Any
44
from pathlib import Path # noqa: F401
55
from fileformats.generic import File, Directory # noqa: F401
66
from fileformats.vendor.mrtrix3.medimage import ImageIn, ImageOut, Tracks # noqa: F401
@@ -37,7 +37,7 @@ class ConnectomeStats(shell.Task["ConnectomeStats.Outputs"]):
3737
MRtrix
3838
------
3939
40-
Version:3.0.4-1402-gd28b95cd, built Aug 22 2025
40+
Version:3.0.7-1578-g23fff5b8-dirty, built Nov 28 2025
4141
4242
Author: Robert E. Smith (robert.smith@florey.edu.au)
4343

pydra/tasks/mrtrix3/v3_1/dcmedit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated from MRtrix C++ command with '__print_pydra_code__' secret option
22

3-
import typing as ty
3+
from typing import Any
44
from pathlib import Path # noqa: F401
55
from fileformats.generic import File, Directory # noqa: F401
66
from fileformats.vendor.mrtrix3.medimage import ImageIn, ImageOut, Tracks # noqa: F401
@@ -29,7 +29,7 @@ class DcmEdit(shell.Task["DcmEdit.Outputs"]):
2929
MRtrix
3030
------
3131
32-
Version:3.0.4-1402-gd28b95cd, built Aug 22 2025
32+
Version:3.0.7-1578-g23fff5b8-dirty, built Nov 28 2025
3333
3434
Author: J-Donald Tournier (jdtournier@gmail.com)
3535
@@ -69,7 +69,7 @@ class DcmEdit(shell.Task["DcmEdit.Outputs"]):
6969
argstr="-id",
7070
help="""replace all ID tags with string supplied. This consists of tags (0010, 0020) PatientID and (0010, 1000) OtherPatientIDs""",
7171
)
72-
tag: MultiInputObj[tuple[ty.Any, ty.Any, ty.Any]] | None = shell.arg(
72+
tag: MultiInputObj[tuple[Any, Any, Any]] | None = shell.arg(
7373
default=None,
7474
argstr="-tag",
7575
help="""replace specific tag.""",

pydra/tasks/mrtrix3/v3_1/dcminfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated from MRtrix C++ command with '__print_pydra_code__' secret option
22

3-
import typing as ty
3+
from typing import Any
44
from pathlib import Path # noqa: F401
55
from fileformats.generic import File, Directory # noqa: F401
66
from fileformats.vendor.mrtrix3.medimage import ImageIn, ImageOut, Tracks # noqa: F401
@@ -20,7 +20,7 @@ class DcmInfo(shell.Task["DcmInfo.Outputs"]):
2020
MRtrix
2121
------
2222
23-
Version:3.0.4-1402-gd28b95cd, built Aug 22 2025
23+
Version:3.0.7-1578-g23fff5b8-dirty, built Nov 28 2025
2424
2525
Author: J-Donald Tournier (jdtournier@gmail.com)
2626

pydra/tasks/mrtrix3/v3_1/dirflip.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated from MRtrix C++ command with '__print_pydra_code__' secret option
22

3-
import typing as ty
3+
from typing import Any
44
from pathlib import Path # noqa: F401
55
from fileformats.generic import File, Directory # noqa: F401
66
from fileformats.vendor.mrtrix3.medimage import ImageIn, ImageOut, Tracks # noqa: F401
@@ -22,7 +22,7 @@ class DirFlip(shell.Task["DirFlip.Outputs"]):
2222
MRtrix
2323
------
2424
25-
Version:3.0.4-1402-gd28b95cd, built Aug 22 2025
25+
Version:3.0.7-1578-g23fff5b8-dirty, built Nov 28 2025
2626
2727
Author: J-Donald Tournier (jdtournier@gmail.com)
2828
@@ -57,10 +57,15 @@ class DirFlip(shell.Task["DirFlip.Outputs"]):
5757
argstr="-number",
5858
help="""number of shuffles to try (default: 100000000)""",
5959
)
60+
preserve: int | None = shell.arg(
61+
default=None,
62+
argstr="-preserve",
63+
help="""preserve the sign of some number of directions at the start of the set""",
64+
)
6065
cartesian: bool = shell.arg(
6166
default=False,
6267
argstr="-cartesian",
63-
help="""Output the directions in Cartesian coordinates [x y z] instead of [az el].""",
68+
help="""Output directions in Cartesian coordinates [x y z] instead of spherical angles [az in].""",
6469
)
6570

6671
# Standard options

pydra/tasks/mrtrix3/v3_1/dirgen.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-generated from MRtrix C++ command with '__print_pydra_code__' secret option
22

3-
import typing as ty
3+
from typing import Any
44
from pathlib import Path # noqa: F401
55
from fileformats.generic import File, Directory # noqa: F401
66
from fileformats.vendor.mrtrix3.medimage import ImageIn, ImageOut, Tracks # noqa: F401
@@ -26,7 +26,7 @@ class DirGen(shell.Task["DirGen.Outputs"]):
2626
MRtrix
2727
------
2828
29-
Version:3.0.4-1402-gd28b95cd, built Aug 22 2025
29+
Version:3.0.7-1578-g23fff5b8-dirty, built Nov 28 2025
3030
3131
Author: J-Donald Tournier (jdtournier@gmail.com)
3232
@@ -71,6 +71,12 @@ class DirGen(shell.Task["DirGen.Outputs"]):
7171
argstr="-restarts",
7272
help="""specify the number of restarts to perform (default: 10).""",
7373
)
74+
fixed: MultiInputObj[list[float]] | None = shell.arg(
75+
default=None,
76+
argstr="-fixed",
77+
help="""specify a fixed direction (comm-separateed floats) that will always be included at the start of the scheme""",
78+
sep=",",
79+
)
7480
unipolar: bool = shell.arg(
7581
default=False,
7682
argstr="-unipolar",
@@ -79,7 +85,7 @@ class DirGen(shell.Task["DirGen.Outputs"]):
7985
cartesian: bool = shell.arg(
8086
default=False,
8187
argstr="-cartesian",
82-
help="""Output the directions in Cartesian coordinates [x y z] instead of [az el].""",
88+
help="""Output directions in Cartesian coordinates [x y z] instead of spherical angles [az in].""",
8389
)
8490

8591
# Standard options
@@ -120,5 +126,5 @@ class Outputs(shell.Outputs):
120126
argstr="",
121127
position=2,
122128
path_template="dirs.txt",
123-
help="""the text file to write the directions to, as [ az el ] pairs.""",
129+
help="""the text file to write the directions to, as [ az in ] pairs.""",
124130
)

0 commit comments

Comments
 (0)