niwrap-mrtrix 0.6.2__py3-none-any.whl → 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of niwrap-mrtrix might be problematic. Click here for more details.

Files changed (122) hide show
  1. niwrap_mrtrix/mrtrix/__init__.py +133 -0
  2. niwrap_mrtrix/mrtrix/afdconnectivity.py +59 -68
  3. niwrap_mrtrix/mrtrix/amp2response.py +72 -77
  4. niwrap_mrtrix/mrtrix/amp2sh.py +109 -74
  5. niwrap_mrtrix/mrtrix/connectome2tck.py +77 -79
  6. niwrap_mrtrix/mrtrix/connectomeedit.py +52 -62
  7. niwrap_mrtrix/mrtrix/connectomestats.py +117 -104
  8. niwrap_mrtrix/mrtrix/dcmedit.py +68 -73
  9. niwrap_mrtrix/mrtrix/dcminfo.py +67 -72
  10. niwrap_mrtrix/mrtrix/dirflip.py +56 -66
  11. niwrap_mrtrix/mrtrix/dirgen.py +68 -75
  12. niwrap_mrtrix/mrtrix/dirmerge.py +56 -66
  13. niwrap_mrtrix/mrtrix/dirorder.py +53 -64
  14. niwrap_mrtrix/mrtrix/dirsplit.py +56 -66
  15. niwrap_mrtrix/mrtrix/dirstat.py +70 -75
  16. niwrap_mrtrix/mrtrix/dwi2adc.py +67 -74
  17. niwrap_mrtrix/mrtrix/dwi2fod.py +141 -96
  18. niwrap_mrtrix/mrtrix/dwi2mask.py +70 -76
  19. niwrap_mrtrix/mrtrix/dwi2response.py +238 -157
  20. niwrap_mrtrix/mrtrix/dwi2tensor.py +87 -88
  21. niwrap_mrtrix/mrtrix/dwibiascorrect.py +97 -95
  22. niwrap_mrtrix/mrtrix/dwidenoise.py +67 -74
  23. niwrap_mrtrix/mrtrix/dwiextract.py +143 -99
  24. niwrap_mrtrix/mrtrix/dwigradcheck.py +89 -91
  25. niwrap_mrtrix/mrtrix/fixel2peaks.py +77 -51
  26. niwrap_mrtrix/mrtrix/fixel2sh.py +54 -65
  27. niwrap_mrtrix/mrtrix/fixel2tsf.py +56 -66
  28. niwrap_mrtrix/mrtrix/fixel2voxel.py +62 -70
  29. niwrap_mrtrix/mrtrix/fixelcfestats.py +145 -93
  30. niwrap_mrtrix/mrtrix/fixelconnectivity.py +62 -70
  31. niwrap_mrtrix/mrtrix/fixelconvert.py +136 -69
  32. niwrap_mrtrix/mrtrix/fixelcorrespondence.py +61 -69
  33. niwrap_mrtrix/mrtrix/fixelcrop.py +53 -64
  34. niwrap_mrtrix/mrtrix/fixelfilter.py +139 -71
  35. niwrap_mrtrix/mrtrix/fixelreorient.py +53 -64
  36. niwrap_mrtrix/mrtrix/fod2dec.py +70 -75
  37. niwrap_mrtrix/mrtrix/fod2fixel.py +84 -85
  38. niwrap_mrtrix/mrtrix/label2colour.py +58 -67
  39. niwrap_mrtrix/mrtrix/label2mesh.py +53 -64
  40. niwrap_mrtrix/mrtrix/labelconvert.py +58 -67
  41. niwrap_mrtrix/mrtrix/labelstats.py +53 -63
  42. niwrap_mrtrix/mrtrix/maskdump.py +52 -64
  43. niwrap_mrtrix/mrtrix/maskfilter.py +93 -61
  44. niwrap_mrtrix/mrtrix/mesh2voxel.py +53 -64
  45. niwrap_mrtrix/mrtrix/meshconvert.py +66 -73
  46. niwrap_mrtrix/mrtrix/meshfilter.py +59 -68
  47. niwrap_mrtrix/mrtrix/mraverageheader.py +62 -70
  48. niwrap_mrtrix/mrtrix/mrcalc.py +522 -397
  49. niwrap_mrtrix/mrtrix/mrcat.py +59 -68
  50. niwrap_mrtrix/mrtrix/mrcentroid.py +53 -63
  51. niwrap_mrtrix/mrtrix/mrcheckerboardmask.py +58 -67
  52. niwrap_mrtrix/mrtrix/mrclusterstats.py +119 -105
  53. niwrap_mrtrix/mrtrix/mrcolour.py +62 -70
  54. niwrap_mrtrix/mrtrix/mrconvert.py +275 -173
  55. niwrap_mrtrix/mrtrix/mrdegibbs.py +66 -73
  56. niwrap_mrtrix/mrtrix/mrdump.py +55 -66
  57. niwrap_mrtrix/mrtrix/mredit.py +97 -94
  58. niwrap_mrtrix/mrtrix/mrfilter.py +124 -81
  59. niwrap_mrtrix/mrtrix/mrgrid.py +131 -88
  60. niwrap_mrtrix/mrtrix/mrhistmatch.py +64 -71
  61. niwrap_mrtrix/mrtrix/mrhistogram.py +64 -71
  62. niwrap_mrtrix/mrtrix/mrinfo.py +160 -137
  63. niwrap_mrtrix/mrtrix/mrmath.py +65 -73
  64. niwrap_mrtrix/mrtrix/mrmetric.py +69 -73
  65. niwrap_mrtrix/mrtrix/mrregister.py +263 -212
  66. niwrap_mrtrix/mrtrix/mrstats.py +66 -72
  67. niwrap_mrtrix/mrtrix/mrthreshold.py +80 -81
  68. niwrap_mrtrix/mrtrix/mrtransform.py +162 -109
  69. niwrap_mrtrix/mrtrix/mtnormalise.py +85 -88
  70. niwrap_mrtrix/mrtrix/peaks2amp.py +51 -63
  71. niwrap_mrtrix/mrtrix/peaks2fixel.py +54 -65
  72. niwrap_mrtrix/mrtrix/responsemean.py +51 -62
  73. niwrap_mrtrix/mrtrix/sh2amp.py +98 -65
  74. niwrap_mrtrix/mrtrix/sh2peaks.py +81 -83
  75. niwrap_mrtrix/mrtrix/sh2power.py +53 -64
  76. niwrap_mrtrix/mrtrix/sh2response.py +62 -70
  77. niwrap_mrtrix/mrtrix/shbasis.py +51 -62
  78. niwrap_mrtrix/mrtrix/shconv.py +78 -52
  79. niwrap_mrtrix/mrtrix/tck2connectome.py +93 -88
  80. niwrap_mrtrix/mrtrix/tck2fixel.py +57 -65
  81. niwrap_mrtrix/mrtrix/tckconvert.py +99 -65
  82. niwrap_mrtrix/mrtrix/tckdfc.py +82 -83
  83. niwrap_mrtrix/mrtrix/tckedit.py +240 -122
  84. niwrap_mrtrix/mrtrix/tckgen.py +364 -207
  85. niwrap_mrtrix/mrtrix/tckglobal.py +127 -115
  86. niwrap_mrtrix/mrtrix/tckinfo.py +50 -61
  87. niwrap_mrtrix/mrtrix/tckmap.py +121 -79
  88. niwrap_mrtrix/mrtrix/tckresample.py +97 -93
  89. niwrap_mrtrix/mrtrix/tcksample.py +62 -69
  90. niwrap_mrtrix/mrtrix/tcksift.py +102 -97
  91. niwrap_mrtrix/mrtrix/tcksift2.py +119 -107
  92. niwrap_mrtrix/mrtrix/tckstats.py +72 -78
  93. niwrap_mrtrix/mrtrix/tcktransform.py +53 -64
  94. niwrap_mrtrix/mrtrix/tensor2metric.py +93 -94
  95. niwrap_mrtrix/mrtrix/transformcalc.py +53 -64
  96. niwrap_mrtrix/mrtrix/transformcompose.py +74 -48
  97. niwrap_mrtrix/mrtrix/transformconvert.py +53 -64
  98. niwrap_mrtrix/mrtrix/tsfdivide.py +53 -64
  99. niwrap_mrtrix/mrtrix/tsfinfo.py +53 -63
  100. niwrap_mrtrix/mrtrix/tsfmult.py +51 -63
  101. niwrap_mrtrix/mrtrix/tsfsmooth.py +54 -65
  102. niwrap_mrtrix/mrtrix/tsfthreshold.py +55 -65
  103. niwrap_mrtrix/mrtrix/tsfvalidate.py +50 -61
  104. niwrap_mrtrix/mrtrix/v_5tt2gmwmi.py +54 -65
  105. niwrap_mrtrix/mrtrix/v_5tt2vis.py +69 -75
  106. niwrap_mrtrix/mrtrix/v_5ttcheck.py +51 -62
  107. niwrap_mrtrix/mrtrix/v_5ttedit.py +73 -79
  108. niwrap_mrtrix/mrtrix/v_5ttgen.py +132 -86
  109. niwrap_mrtrix/mrtrix/vectorstats.py +92 -88
  110. niwrap_mrtrix/mrtrix/voxel2fixel.py +54 -63
  111. niwrap_mrtrix/mrtrix/voxel2mesh.py +56 -66
  112. niwrap_mrtrix/mrtrix/warp2metric.py +71 -77
  113. niwrap_mrtrix/mrtrix/warpconvert.py +61 -69
  114. niwrap_mrtrix/mrtrix/warpcorrect.py +61 -71
  115. niwrap_mrtrix/mrtrix/warpinit.py +51 -63
  116. niwrap_mrtrix/mrtrix/warpinvert.py +56 -66
  117. niwrap_mrtrix-0.7.0.dist-info/METADATA +8 -0
  118. niwrap_mrtrix-0.7.0.dist-info/RECORD +119 -0
  119. niwrap_mrtrix-0.7.0.dist-info/WHEEL +4 -0
  120. niwrap_mrtrix-0.6.2.dist-info/METADATA +0 -8
  121. niwrap_mrtrix-0.6.2.dist-info/RECORD +0 -119
  122. niwrap_mrtrix-0.6.2.dist-info/WHEEL +0 -4
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  MRCALC_METADATA = Metadata(
9
- id="10631d932779573730eb3b7176769590abb94c38.boutiques",
9
+ id="653dbc736bd2e23e6344aa23f92d7d2506dd4a3a.boutiques",
10
10
  name="mrcalc",
11
11
  package="mrtrix",
12
12
  container_image_tag="mrtrix3/mrtrix3:3.0.4",
@@ -14,276 +14,502 @@ MRCALC_METADATA = Metadata(
14
14
 
15
15
 
16
16
  MrcalcAbsParameters = typing.TypedDict('MrcalcAbsParameters', {
17
- "__STYXTYPE__": typing.Literal["abs"],
17
+ "@type": typing.NotRequired[typing.Literal["abs"]],
18
+ })
19
+ MrcalcAbsParametersTagged = typing.TypedDict('MrcalcAbsParametersTagged', {
20
+ "@type": typing.Literal["abs"],
18
21
  })
19
22
 
20
23
 
21
24
  MrcalcNegParameters = typing.TypedDict('MrcalcNegParameters', {
22
- "__STYXTYPE__": typing.Literal["neg"],
25
+ "@type": typing.NotRequired[typing.Literal["neg"]],
26
+ })
27
+ MrcalcNegParametersTagged = typing.TypedDict('MrcalcNegParametersTagged', {
28
+ "@type": typing.Literal["neg"],
23
29
  })
24
30
 
25
31
 
26
32
  MrcalcAddParameters = typing.TypedDict('MrcalcAddParameters', {
27
- "__STYXTYPE__": typing.Literal["add"],
33
+ "@type": typing.NotRequired[typing.Literal["add"]],
34
+ })
35
+ MrcalcAddParametersTagged = typing.TypedDict('MrcalcAddParametersTagged', {
36
+ "@type": typing.Literal["add"],
28
37
  })
29
38
 
30
39
 
31
40
  MrcalcSubtractParameters = typing.TypedDict('MrcalcSubtractParameters', {
32
- "__STYXTYPE__": typing.Literal["subtract"],
41
+ "@type": typing.NotRequired[typing.Literal["subtract"]],
42
+ })
43
+ MrcalcSubtractParametersTagged = typing.TypedDict('MrcalcSubtractParametersTagged', {
44
+ "@type": typing.Literal["subtract"],
33
45
  })
34
46
 
35
47
 
36
48
  MrcalcMultiplyParameters = typing.TypedDict('MrcalcMultiplyParameters', {
37
- "__STYXTYPE__": typing.Literal["multiply"],
49
+ "@type": typing.NotRequired[typing.Literal["multiply"]],
50
+ })
51
+ MrcalcMultiplyParametersTagged = typing.TypedDict('MrcalcMultiplyParametersTagged', {
52
+ "@type": typing.Literal["multiply"],
38
53
  })
39
54
 
40
55
 
41
56
  MrcalcDivideParameters = typing.TypedDict('MrcalcDivideParameters', {
42
- "__STYXTYPE__": typing.Literal["divide"],
57
+ "@type": typing.NotRequired[typing.Literal["divide"]],
58
+ })
59
+ MrcalcDivideParametersTagged = typing.TypedDict('MrcalcDivideParametersTagged', {
60
+ "@type": typing.Literal["divide"],
43
61
  })
44
62
 
45
63
 
46
64
  MrcalcMinParameters = typing.TypedDict('MrcalcMinParameters', {
47
- "__STYXTYPE__": typing.Literal["min"],
65
+ "@type": typing.NotRequired[typing.Literal["min"]],
66
+ })
67
+ MrcalcMinParametersTagged = typing.TypedDict('MrcalcMinParametersTagged', {
68
+ "@type": typing.Literal["min"],
48
69
  })
49
70
 
50
71
 
51
72
  MrcalcMaxParameters = typing.TypedDict('MrcalcMaxParameters', {
52
- "__STYXTYPE__": typing.Literal["max"],
73
+ "@type": typing.NotRequired[typing.Literal["max"]],
74
+ })
75
+ MrcalcMaxParametersTagged = typing.TypedDict('MrcalcMaxParametersTagged', {
76
+ "@type": typing.Literal["max"],
53
77
  })
54
78
 
55
79
 
56
80
  MrcalcLtParameters = typing.TypedDict('MrcalcLtParameters', {
57
- "__STYXTYPE__": typing.Literal["lt"],
81
+ "@type": typing.NotRequired[typing.Literal["lt"]],
82
+ })
83
+ MrcalcLtParametersTagged = typing.TypedDict('MrcalcLtParametersTagged', {
84
+ "@type": typing.Literal["lt"],
58
85
  })
59
86
 
60
87
 
61
88
  MrcalcGtParameters = typing.TypedDict('MrcalcGtParameters', {
62
- "__STYXTYPE__": typing.Literal["gt"],
89
+ "@type": typing.NotRequired[typing.Literal["gt"]],
90
+ })
91
+ MrcalcGtParametersTagged = typing.TypedDict('MrcalcGtParametersTagged', {
92
+ "@type": typing.Literal["gt"],
63
93
  })
64
94
 
65
95
 
66
96
  MrcalcLeParameters = typing.TypedDict('MrcalcLeParameters', {
67
- "__STYXTYPE__": typing.Literal["le"],
97
+ "@type": typing.NotRequired[typing.Literal["le"]],
98
+ })
99
+ MrcalcLeParametersTagged = typing.TypedDict('MrcalcLeParametersTagged', {
100
+ "@type": typing.Literal["le"],
68
101
  })
69
102
 
70
103
 
71
104
  MrcalcGeParameters = typing.TypedDict('MrcalcGeParameters', {
72
- "__STYXTYPE__": typing.Literal["ge"],
105
+ "@type": typing.NotRequired[typing.Literal["ge"]],
106
+ })
107
+ MrcalcGeParametersTagged = typing.TypedDict('MrcalcGeParametersTagged', {
108
+ "@type": typing.Literal["ge"],
73
109
  })
74
110
 
75
111
 
76
112
  MrcalcEqParameters = typing.TypedDict('MrcalcEqParameters', {
77
- "__STYXTYPE__": typing.Literal["eq"],
113
+ "@type": typing.NotRequired[typing.Literal["eq"]],
114
+ })
115
+ MrcalcEqParametersTagged = typing.TypedDict('MrcalcEqParametersTagged', {
116
+ "@type": typing.Literal["eq"],
78
117
  })
79
118
 
80
119
 
81
120
  MrcalcNeqParameters = typing.TypedDict('MrcalcNeqParameters', {
82
- "__STYXTYPE__": typing.Literal["neq"],
121
+ "@type": typing.NotRequired[typing.Literal["neq"]],
122
+ })
123
+ MrcalcNeqParametersTagged = typing.TypedDict('MrcalcNeqParametersTagged', {
124
+ "@type": typing.Literal["neq"],
83
125
  })
84
126
 
85
127
 
86
128
  MrcalcIfParameters = typing.TypedDict('MrcalcIfParameters', {
87
- "__STYXTYPE__": typing.Literal["if"],
129
+ "@type": typing.NotRequired[typing.Literal["if"]],
130
+ })
131
+ MrcalcIfParametersTagged = typing.TypedDict('MrcalcIfParametersTagged', {
132
+ "@type": typing.Literal["if"],
88
133
  })
89
134
 
90
135
 
91
136
  MrcalcReplaceParameters = typing.TypedDict('MrcalcReplaceParameters', {
92
- "__STYXTYPE__": typing.Literal["replace"],
137
+ "@type": typing.NotRequired[typing.Literal["replace"]],
138
+ })
139
+ MrcalcReplaceParametersTagged = typing.TypedDict('MrcalcReplaceParametersTagged', {
140
+ "@type": typing.Literal["replace"],
93
141
  })
94
142
 
95
143
 
96
144
  MrcalcSqrtParameters = typing.TypedDict('MrcalcSqrtParameters', {
97
- "__STYXTYPE__": typing.Literal["sqrt"],
145
+ "@type": typing.NotRequired[typing.Literal["sqrt"]],
146
+ })
147
+ MrcalcSqrtParametersTagged = typing.TypedDict('MrcalcSqrtParametersTagged', {
148
+ "@type": typing.Literal["sqrt"],
98
149
  })
99
150
 
100
151
 
101
152
  MrcalcPowParameters = typing.TypedDict('MrcalcPowParameters', {
102
- "__STYXTYPE__": typing.Literal["pow"],
153
+ "@type": typing.NotRequired[typing.Literal["pow"]],
154
+ })
155
+ MrcalcPowParametersTagged = typing.TypedDict('MrcalcPowParametersTagged', {
156
+ "@type": typing.Literal["pow"],
103
157
  })
104
158
 
105
159
 
106
160
  MrcalcRoundParameters = typing.TypedDict('MrcalcRoundParameters', {
107
- "__STYXTYPE__": typing.Literal["round"],
161
+ "@type": typing.NotRequired[typing.Literal["round"]],
162
+ })
163
+ MrcalcRoundParametersTagged = typing.TypedDict('MrcalcRoundParametersTagged', {
164
+ "@type": typing.Literal["round"],
108
165
  })
109
166
 
110
167
 
111
168
  MrcalcCeilParameters = typing.TypedDict('MrcalcCeilParameters', {
112
- "__STYXTYPE__": typing.Literal["ceil"],
169
+ "@type": typing.NotRequired[typing.Literal["ceil"]],
170
+ })
171
+ MrcalcCeilParametersTagged = typing.TypedDict('MrcalcCeilParametersTagged', {
172
+ "@type": typing.Literal["ceil"],
113
173
  })
114
174
 
115
175
 
116
176
  MrcalcFloorParameters = typing.TypedDict('MrcalcFloorParameters', {
117
- "__STYXTYPE__": typing.Literal["floor"],
177
+ "@type": typing.NotRequired[typing.Literal["floor"]],
178
+ })
179
+ MrcalcFloorParametersTagged = typing.TypedDict('MrcalcFloorParametersTagged', {
180
+ "@type": typing.Literal["floor"],
118
181
  })
119
182
 
120
183
 
121
184
  MrcalcNotParameters = typing.TypedDict('MrcalcNotParameters', {
122
- "__STYXTYPE__": typing.Literal["not"],
185
+ "@type": typing.NotRequired[typing.Literal["not"]],
186
+ })
187
+ MrcalcNotParametersTagged = typing.TypedDict('MrcalcNotParametersTagged', {
188
+ "@type": typing.Literal["not"],
123
189
  })
124
190
 
125
191
 
126
192
  MrcalcAndParameters = typing.TypedDict('MrcalcAndParameters', {
127
- "__STYXTYPE__": typing.Literal["and"],
193
+ "@type": typing.NotRequired[typing.Literal["and"]],
194
+ })
195
+ MrcalcAndParametersTagged = typing.TypedDict('MrcalcAndParametersTagged', {
196
+ "@type": typing.Literal["and"],
128
197
  })
129
198
 
130
199
 
131
200
  MrcalcOrParameters = typing.TypedDict('MrcalcOrParameters', {
132
- "__STYXTYPE__": typing.Literal["or"],
201
+ "@type": typing.NotRequired[typing.Literal["or"]],
202
+ })
203
+ MrcalcOrParametersTagged = typing.TypedDict('MrcalcOrParametersTagged', {
204
+ "@type": typing.Literal["or"],
133
205
  })
134
206
 
135
207
 
136
208
  MrcalcXorParameters = typing.TypedDict('MrcalcXorParameters', {
137
- "__STYXTYPE__": typing.Literal["xor"],
209
+ "@type": typing.NotRequired[typing.Literal["xor"]],
210
+ })
211
+ MrcalcXorParametersTagged = typing.TypedDict('MrcalcXorParametersTagged', {
212
+ "@type": typing.Literal["xor"],
138
213
  })
139
214
 
140
215
 
141
216
  MrcalcIsnanParameters = typing.TypedDict('MrcalcIsnanParameters', {
142
- "__STYXTYPE__": typing.Literal["isnan"],
217
+ "@type": typing.NotRequired[typing.Literal["isnan"]],
218
+ })
219
+ MrcalcIsnanParametersTagged = typing.TypedDict('MrcalcIsnanParametersTagged', {
220
+ "@type": typing.Literal["isnan"],
143
221
  })
144
222
 
145
223
 
146
224
  MrcalcIsinfParameters = typing.TypedDict('MrcalcIsinfParameters', {
147
- "__STYXTYPE__": typing.Literal["isinf"],
225
+ "@type": typing.NotRequired[typing.Literal["isinf"]],
226
+ })
227
+ MrcalcIsinfParametersTagged = typing.TypedDict('MrcalcIsinfParametersTagged', {
228
+ "@type": typing.Literal["isinf"],
148
229
  })
149
230
 
150
231
 
151
232
  MrcalcFiniteParameters = typing.TypedDict('MrcalcFiniteParameters', {
152
- "__STYXTYPE__": typing.Literal["finite"],
233
+ "@type": typing.NotRequired[typing.Literal["finite"]],
234
+ })
235
+ MrcalcFiniteParametersTagged = typing.TypedDict('MrcalcFiniteParametersTagged', {
236
+ "@type": typing.Literal["finite"],
153
237
  })
154
238
 
155
239
 
156
240
  MrcalcComplexParameters = typing.TypedDict('MrcalcComplexParameters', {
157
- "__STYXTYPE__": typing.Literal["complex"],
241
+ "@type": typing.NotRequired[typing.Literal["complex"]],
242
+ })
243
+ MrcalcComplexParametersTagged = typing.TypedDict('MrcalcComplexParametersTagged', {
244
+ "@type": typing.Literal["complex"],
158
245
  })
159
246
 
160
247
 
161
248
  MrcalcPolarParameters = typing.TypedDict('MrcalcPolarParameters', {
162
- "__STYXTYPE__": typing.Literal["polar"],
249
+ "@type": typing.NotRequired[typing.Literal["polar"]],
250
+ })
251
+ MrcalcPolarParametersTagged = typing.TypedDict('MrcalcPolarParametersTagged', {
252
+ "@type": typing.Literal["polar"],
163
253
  })
164
254
 
165
255
 
166
256
  MrcalcRealParameters = typing.TypedDict('MrcalcRealParameters', {
167
- "__STYXTYPE__": typing.Literal["real"],
257
+ "@type": typing.NotRequired[typing.Literal["real"]],
258
+ })
259
+ MrcalcRealParametersTagged = typing.TypedDict('MrcalcRealParametersTagged', {
260
+ "@type": typing.Literal["real"],
168
261
  })
169
262
 
170
263
 
171
264
  MrcalcImagParameters = typing.TypedDict('MrcalcImagParameters', {
172
- "__STYXTYPE__": typing.Literal["imag"],
265
+ "@type": typing.NotRequired[typing.Literal["imag"]],
266
+ })
267
+ MrcalcImagParametersTagged = typing.TypedDict('MrcalcImagParametersTagged', {
268
+ "@type": typing.Literal["imag"],
173
269
  })
174
270
 
175
271
 
176
272
  MrcalcPhaseParameters = typing.TypedDict('MrcalcPhaseParameters', {
177
- "__STYXTYPE__": typing.Literal["phase"],
273
+ "@type": typing.NotRequired[typing.Literal["phase"]],
274
+ })
275
+ MrcalcPhaseParametersTagged = typing.TypedDict('MrcalcPhaseParametersTagged', {
276
+ "@type": typing.Literal["phase"],
178
277
  })
179
278
 
180
279
 
181
280
  MrcalcConjParameters = typing.TypedDict('MrcalcConjParameters', {
182
- "__STYXTYPE__": typing.Literal["conj"],
281
+ "@type": typing.NotRequired[typing.Literal["conj"]],
282
+ })
283
+ MrcalcConjParametersTagged = typing.TypedDict('MrcalcConjParametersTagged', {
284
+ "@type": typing.Literal["conj"],
183
285
  })
184
286
 
185
287
 
186
288
  MrcalcProjParameters = typing.TypedDict('MrcalcProjParameters', {
187
- "__STYXTYPE__": typing.Literal["proj"],
289
+ "@type": typing.NotRequired[typing.Literal["proj"]],
290
+ })
291
+ MrcalcProjParametersTagged = typing.TypedDict('MrcalcProjParametersTagged', {
292
+ "@type": typing.Literal["proj"],
188
293
  })
189
294
 
190
295
 
191
296
  MrcalcExpParameters = typing.TypedDict('MrcalcExpParameters', {
192
- "__STYXTYPE__": typing.Literal["exp"],
297
+ "@type": typing.NotRequired[typing.Literal["exp"]],
298
+ })
299
+ MrcalcExpParametersTagged = typing.TypedDict('MrcalcExpParametersTagged', {
300
+ "@type": typing.Literal["exp"],
193
301
  })
194
302
 
195
303
 
196
304
  MrcalcLogParameters = typing.TypedDict('MrcalcLogParameters', {
197
- "__STYXTYPE__": typing.Literal["log"],
305
+ "@type": typing.NotRequired[typing.Literal["log"]],
306
+ })
307
+ MrcalcLogParametersTagged = typing.TypedDict('MrcalcLogParametersTagged', {
308
+ "@type": typing.Literal["log"],
198
309
  })
199
310
 
200
311
 
201
312
  MrcalcLog10Parameters = typing.TypedDict('MrcalcLog10Parameters', {
202
- "__STYXTYPE__": typing.Literal["log10"],
313
+ "@type": typing.NotRequired[typing.Literal["log10"]],
314
+ })
315
+ MrcalcLog10ParametersTagged = typing.TypedDict('MrcalcLog10ParametersTagged', {
316
+ "@type": typing.Literal["log10"],
203
317
  })
204
318
 
205
319
 
206
320
  MrcalcCosParameters = typing.TypedDict('MrcalcCosParameters', {
207
- "__STYXTYPE__": typing.Literal["cos"],
321
+ "@type": typing.NotRequired[typing.Literal["cos"]],
322
+ })
323
+ MrcalcCosParametersTagged = typing.TypedDict('MrcalcCosParametersTagged', {
324
+ "@type": typing.Literal["cos"],
208
325
  })
209
326
 
210
327
 
211
328
  MrcalcSinParameters = typing.TypedDict('MrcalcSinParameters', {
212
- "__STYXTYPE__": typing.Literal["sin"],
329
+ "@type": typing.NotRequired[typing.Literal["sin"]],
330
+ })
331
+ MrcalcSinParametersTagged = typing.TypedDict('MrcalcSinParametersTagged', {
332
+ "@type": typing.Literal["sin"],
213
333
  })
214
334
 
215
335
 
216
336
  MrcalcTanParameters = typing.TypedDict('MrcalcTanParameters', {
217
- "__STYXTYPE__": typing.Literal["tan"],
337
+ "@type": typing.NotRequired[typing.Literal["tan"]],
338
+ })
339
+ MrcalcTanParametersTagged = typing.TypedDict('MrcalcTanParametersTagged', {
340
+ "@type": typing.Literal["tan"],
218
341
  })
219
342
 
220
343
 
221
344
  MrcalcAcosParameters = typing.TypedDict('MrcalcAcosParameters', {
222
- "__STYXTYPE__": typing.Literal["acos"],
345
+ "@type": typing.NotRequired[typing.Literal["acos"]],
346
+ })
347
+ MrcalcAcosParametersTagged = typing.TypedDict('MrcalcAcosParametersTagged', {
348
+ "@type": typing.Literal["acos"],
223
349
  })
224
350
 
225
351
 
226
352
  MrcalcAsinParameters = typing.TypedDict('MrcalcAsinParameters', {
227
- "__STYXTYPE__": typing.Literal["asin"],
353
+ "@type": typing.NotRequired[typing.Literal["asin"]],
354
+ })
355
+ MrcalcAsinParametersTagged = typing.TypedDict('MrcalcAsinParametersTagged', {
356
+ "@type": typing.Literal["asin"],
228
357
  })
229
358
 
230
359
 
231
360
  MrcalcAtanParameters = typing.TypedDict('MrcalcAtanParameters', {
232
- "__STYXTYPE__": typing.Literal["atan"],
361
+ "@type": typing.NotRequired[typing.Literal["atan"]],
362
+ })
363
+ MrcalcAtanParametersTagged = typing.TypedDict('MrcalcAtanParametersTagged', {
364
+ "@type": typing.Literal["atan"],
233
365
  })
234
366
 
235
367
 
236
368
  MrcalcCoshParameters = typing.TypedDict('MrcalcCoshParameters', {
237
- "__STYXTYPE__": typing.Literal["cosh"],
369
+ "@type": typing.NotRequired[typing.Literal["cosh"]],
370
+ })
371
+ MrcalcCoshParametersTagged = typing.TypedDict('MrcalcCoshParametersTagged', {
372
+ "@type": typing.Literal["cosh"],
238
373
  })
239
374
 
240
375
 
241
376
  MrcalcSinhParameters = typing.TypedDict('MrcalcSinhParameters', {
242
- "__STYXTYPE__": typing.Literal["sinh"],
377
+ "@type": typing.NotRequired[typing.Literal["sinh"]],
378
+ })
379
+ MrcalcSinhParametersTagged = typing.TypedDict('MrcalcSinhParametersTagged', {
380
+ "@type": typing.Literal["sinh"],
243
381
  })
244
382
 
245
383
 
246
384
  MrcalcTanhParameters = typing.TypedDict('MrcalcTanhParameters', {
247
- "__STYXTYPE__": typing.Literal["tanh"],
385
+ "@type": typing.NotRequired[typing.Literal["tanh"]],
386
+ })
387
+ MrcalcTanhParametersTagged = typing.TypedDict('MrcalcTanhParametersTagged', {
388
+ "@type": typing.Literal["tanh"],
248
389
  })
249
390
 
250
391
 
251
392
  MrcalcAcoshParameters = typing.TypedDict('MrcalcAcoshParameters', {
252
- "__STYXTYPE__": typing.Literal["acosh"],
393
+ "@type": typing.NotRequired[typing.Literal["acosh"]],
394
+ })
395
+ MrcalcAcoshParametersTagged = typing.TypedDict('MrcalcAcoshParametersTagged', {
396
+ "@type": typing.Literal["acosh"],
253
397
  })
254
398
 
255
399
 
256
400
  MrcalcAsinhParameters = typing.TypedDict('MrcalcAsinhParameters', {
257
- "__STYXTYPE__": typing.Literal["asinh"],
401
+ "@type": typing.NotRequired[typing.Literal["asinh"]],
402
+ })
403
+ MrcalcAsinhParametersTagged = typing.TypedDict('MrcalcAsinhParametersTagged', {
404
+ "@type": typing.Literal["asinh"],
258
405
  })
259
406
 
260
407
 
261
408
  MrcalcAtanhParameters = typing.TypedDict('MrcalcAtanhParameters', {
262
- "__STYXTYPE__": typing.Literal["atanh"],
409
+ "@type": typing.NotRequired[typing.Literal["atanh"]],
410
+ })
411
+ MrcalcAtanhParametersTagged = typing.TypedDict('MrcalcAtanhParametersTagged', {
412
+ "@type": typing.Literal["atanh"],
263
413
  })
264
414
 
265
415
 
266
416
  MrcalcConfigParameters = typing.TypedDict('MrcalcConfigParameters', {
267
- "__STYXTYPE__": typing.Literal["config"],
417
+ "@type": typing.NotRequired[typing.Literal["config"]],
418
+ "key": str,
419
+ "value": str,
420
+ })
421
+ MrcalcConfigParametersTagged = typing.TypedDict('MrcalcConfigParametersTagged', {
422
+ "@type": typing.Literal["config"],
268
423
  "key": str,
269
424
  "value": str,
270
425
  })
271
426
 
272
427
 
273
428
  MrcalcVariousStringParameters = typing.TypedDict('MrcalcVariousStringParameters', {
274
- "__STYXTYPE__": typing.Literal["VariousString"],
429
+ "@type": typing.NotRequired[typing.Literal["VariousString"]],
430
+ "obj": str,
431
+ })
432
+ MrcalcVariousStringParametersTagged = typing.TypedDict('MrcalcVariousStringParametersTagged', {
433
+ "@type": typing.Literal["VariousString"],
275
434
  "obj": str,
276
435
  })
277
436
 
278
437
 
279
438
  MrcalcVariousFileParameters = typing.TypedDict('MrcalcVariousFileParameters', {
280
- "__STYXTYPE__": typing.Literal["VariousFile"],
439
+ "@type": typing.NotRequired[typing.Literal["VariousFile"]],
440
+ "obj": InputPathType,
441
+ })
442
+ MrcalcVariousFileParametersTagged = typing.TypedDict('MrcalcVariousFileParametersTagged', {
443
+ "@type": typing.Literal["VariousFile"],
281
444
  "obj": InputPathType,
282
445
  })
283
446
 
284
447
 
285
448
  MrcalcParameters = typing.TypedDict('MrcalcParameters', {
286
- "__STYXTYPE__": typing.Literal["mrcalc"],
449
+ "@type": typing.NotRequired[typing.Literal["mrtrix/mrcalc"]],
450
+ "abs": typing.NotRequired[list[MrcalcAbsParameters] | None],
451
+ "neg": typing.NotRequired[list[MrcalcNegParameters] | None],
452
+ "add": typing.NotRequired[list[MrcalcAddParameters] | None],
453
+ "subtract": typing.NotRequired[list[MrcalcSubtractParameters] | None],
454
+ "multiply": typing.NotRequired[list[MrcalcMultiplyParameters] | None],
455
+ "divide": typing.NotRequired[list[MrcalcDivideParameters] | None],
456
+ "min": typing.NotRequired[list[MrcalcMinParameters] | None],
457
+ "max": typing.NotRequired[list[MrcalcMaxParameters] | None],
458
+ "lt": typing.NotRequired[list[MrcalcLtParameters] | None],
459
+ "gt": typing.NotRequired[list[MrcalcGtParameters] | None],
460
+ "le": typing.NotRequired[list[MrcalcLeParameters] | None],
461
+ "ge": typing.NotRequired[list[MrcalcGeParameters] | None],
462
+ "eq": typing.NotRequired[list[MrcalcEqParameters] | None],
463
+ "neq": typing.NotRequired[list[MrcalcNeqParameters] | None],
464
+ "if": typing.NotRequired[list[MrcalcIfParameters] | None],
465
+ "replace": typing.NotRequired[list[MrcalcReplaceParameters] | None],
466
+ "sqrt": typing.NotRequired[list[MrcalcSqrtParameters] | None],
467
+ "pow": typing.NotRequired[list[MrcalcPowParameters] | None],
468
+ "round": typing.NotRequired[list[MrcalcRoundParameters] | None],
469
+ "ceil": typing.NotRequired[list[MrcalcCeilParameters] | None],
470
+ "floor": typing.NotRequired[list[MrcalcFloorParameters] | None],
471
+ "not": typing.NotRequired[list[MrcalcNotParameters] | None],
472
+ "and": typing.NotRequired[list[MrcalcAndParameters] | None],
473
+ "or": typing.NotRequired[list[MrcalcOrParameters] | None],
474
+ "xor": typing.NotRequired[list[MrcalcXorParameters] | None],
475
+ "isnan": typing.NotRequired[list[MrcalcIsnanParameters] | None],
476
+ "isinf": typing.NotRequired[list[MrcalcIsinfParameters] | None],
477
+ "finite": typing.NotRequired[list[MrcalcFiniteParameters] | None],
478
+ "complex": typing.NotRequired[list[MrcalcComplexParameters] | None],
479
+ "polar": typing.NotRequired[list[MrcalcPolarParameters] | None],
480
+ "real": typing.NotRequired[list[MrcalcRealParameters] | None],
481
+ "imag": typing.NotRequired[list[MrcalcImagParameters] | None],
482
+ "phase": typing.NotRequired[list[MrcalcPhaseParameters] | None],
483
+ "conj": typing.NotRequired[list[MrcalcConjParameters] | None],
484
+ "proj": typing.NotRequired[list[MrcalcProjParameters] | None],
485
+ "exp": typing.NotRequired[list[MrcalcExpParameters] | None],
486
+ "log": typing.NotRequired[list[MrcalcLogParameters] | None],
487
+ "log10": typing.NotRequired[list[MrcalcLog10Parameters] | None],
488
+ "cos": typing.NotRequired[list[MrcalcCosParameters] | None],
489
+ "sin": typing.NotRequired[list[MrcalcSinParameters] | None],
490
+ "tan": typing.NotRequired[list[MrcalcTanParameters] | None],
491
+ "acos": typing.NotRequired[list[MrcalcAcosParameters] | None],
492
+ "asin": typing.NotRequired[list[MrcalcAsinParameters] | None],
493
+ "atan": typing.NotRequired[list[MrcalcAtanParameters] | None],
494
+ "cosh": typing.NotRequired[list[MrcalcCoshParameters] | None],
495
+ "sinh": typing.NotRequired[list[MrcalcSinhParameters] | None],
496
+ "tanh": typing.NotRequired[list[MrcalcTanhParameters] | None],
497
+ "acosh": typing.NotRequired[list[MrcalcAcoshParameters] | None],
498
+ "asinh": typing.NotRequired[list[MrcalcAsinhParameters] | None],
499
+ "atanh": typing.NotRequired[list[MrcalcAtanhParameters] | None],
500
+ "datatype": typing.NotRequired[str | None],
501
+ "info": bool,
502
+ "quiet": bool,
503
+ "debug": bool,
504
+ "force": bool,
505
+ "nthreads": typing.NotRequired[int | None],
506
+ "config": typing.NotRequired[list[MrcalcConfigParameters] | None],
507
+ "help": bool,
508
+ "version": bool,
509
+ "operand": list[typing.Union[MrcalcVariousStringParametersTagged, MrcalcVariousFileParametersTagged]],
510
+ })
511
+ MrcalcParametersTagged = typing.TypedDict('MrcalcParametersTagged', {
512
+ "@type": typing.Literal["mrtrix/mrcalc"],
287
513
  "abs": typing.NotRequired[list[MrcalcAbsParameters] | None],
288
514
  "neg": typing.NotRequired[list[MrcalcNegParameters] | None],
289
515
  "add": typing.NotRequired[list[MrcalcAddParameters] | None],
@@ -343,11 +569,11 @@ MrcalcParameters = typing.TypedDict('MrcalcParameters', {
343
569
  "config": typing.NotRequired[list[MrcalcConfigParameters] | None],
344
570
  "help": bool,
345
571
  "version": bool,
346
- "operand": list[typing.Union[MrcalcVariousStringParameters, MrcalcVariousFileParameters]],
572
+ "operand": list[typing.Union[MrcalcVariousStringParametersTagged, MrcalcVariousFileParametersTagged]],
347
573
  })
348
574
 
349
575
 
350
- def dyn_cargs(
576
+ def mrcalc_operand_cargs_dyn_fn(
351
577
  t: str,
352
578
  ) -> typing.Any:
353
579
  """
@@ -359,64 +585,12 @@ def dyn_cargs(
359
585
  Build cargs function.
360
586
  """
361
587
  return {
362
- "mrcalc": mrcalc_cargs,
363
- "abs": mrcalc_abs_cargs,
364
- "neg": mrcalc_neg_cargs,
365
- "add": mrcalc_add_cargs,
366
- "subtract": mrcalc_subtract_cargs,
367
- "multiply": mrcalc_multiply_cargs,
368
- "divide": mrcalc_divide_cargs,
369
- "min": mrcalc_min_cargs,
370
- "max": mrcalc_max_cargs,
371
- "lt": mrcalc_lt_cargs,
372
- "gt": mrcalc_gt_cargs,
373
- "le": mrcalc_le_cargs,
374
- "ge": mrcalc_ge_cargs,
375
- "eq": mrcalc_eq_cargs,
376
- "neq": mrcalc_neq_cargs,
377
- "if": mrcalc_if_cargs,
378
- "replace": mrcalc_replace_cargs,
379
- "sqrt": mrcalc_sqrt_cargs,
380
- "pow": mrcalc_pow_cargs,
381
- "round": mrcalc_round_cargs,
382
- "ceil": mrcalc_ceil_cargs,
383
- "floor": mrcalc_floor_cargs,
384
- "not": mrcalc_not_cargs,
385
- "and": mrcalc_and_cargs,
386
- "or": mrcalc_or_cargs,
387
- "xor": mrcalc_xor_cargs,
388
- "isnan": mrcalc_isnan_cargs,
389
- "isinf": mrcalc_isinf_cargs,
390
- "finite": mrcalc_finite_cargs,
391
- "complex": mrcalc_complex_cargs,
392
- "polar": mrcalc_polar_cargs,
393
- "real": mrcalc_real_cargs,
394
- "imag": mrcalc_imag_cargs,
395
- "phase": mrcalc_phase_cargs,
396
- "conj": mrcalc_conj_cargs,
397
- "proj": mrcalc_proj_cargs,
398
- "exp": mrcalc_exp_cargs,
399
- "log": mrcalc_log_cargs,
400
- "log10": mrcalc_log10_cargs,
401
- "cos": mrcalc_cos_cargs,
402
- "sin": mrcalc_sin_cargs,
403
- "tan": mrcalc_tan_cargs,
404
- "acos": mrcalc_acos_cargs,
405
- "asin": mrcalc_asin_cargs,
406
- "atan": mrcalc_atan_cargs,
407
- "cosh": mrcalc_cosh_cargs,
408
- "sinh": mrcalc_sinh_cargs,
409
- "tanh": mrcalc_tanh_cargs,
410
- "acosh": mrcalc_acosh_cargs,
411
- "asinh": mrcalc_asinh_cargs,
412
- "atanh": mrcalc_atanh_cargs,
413
- "config": mrcalc_config_cargs,
414
588
  "VariousString": mrcalc_various_string_cargs,
415
589
  "VariousFile": mrcalc_various_file_cargs,
416
590
  }.get(t)
417
591
 
418
592
 
419
- def dyn_outputs(
593
+ def mrcalc_operand_outputs_dyn_fn(
420
594
  t: str,
421
595
  ) -> typing.Any:
422
596
  """
@@ -432,7 +606,7 @@ def dyn_outputs(
432
606
 
433
607
 
434
608
  def mrcalc_abs_params(
435
- ) -> MrcalcAbsParameters:
609
+ ) -> MrcalcAbsParametersTagged:
436
610
  """
437
611
  Build parameters.
438
612
 
@@ -441,7 +615,7 @@ def mrcalc_abs_params(
441
615
  Parameter dictionary
442
616
  """
443
617
  params = {
444
- "__STYXTYPE__": "abs",
618
+ "@type": "abs",
445
619
  }
446
620
  return params
447
621
 
@@ -465,7 +639,7 @@ def mrcalc_abs_cargs(
465
639
 
466
640
 
467
641
  def mrcalc_neg_params(
468
- ) -> MrcalcNegParameters:
642
+ ) -> MrcalcNegParametersTagged:
469
643
  """
470
644
  Build parameters.
471
645
 
@@ -474,7 +648,7 @@ def mrcalc_neg_params(
474
648
  Parameter dictionary
475
649
  """
476
650
  params = {
477
- "__STYXTYPE__": "neg",
651
+ "@type": "neg",
478
652
  }
479
653
  return params
480
654
 
@@ -498,7 +672,7 @@ def mrcalc_neg_cargs(
498
672
 
499
673
 
500
674
  def mrcalc_add_params(
501
- ) -> MrcalcAddParameters:
675
+ ) -> MrcalcAddParametersTagged:
502
676
  """
503
677
  Build parameters.
504
678
 
@@ -507,7 +681,7 @@ def mrcalc_add_params(
507
681
  Parameter dictionary
508
682
  """
509
683
  params = {
510
- "__STYXTYPE__": "add",
684
+ "@type": "add",
511
685
  }
512
686
  return params
513
687
 
@@ -531,7 +705,7 @@ def mrcalc_add_cargs(
531
705
 
532
706
 
533
707
  def mrcalc_subtract_params(
534
- ) -> MrcalcSubtractParameters:
708
+ ) -> MrcalcSubtractParametersTagged:
535
709
  """
536
710
  Build parameters.
537
711
 
@@ -540,7 +714,7 @@ def mrcalc_subtract_params(
540
714
  Parameter dictionary
541
715
  """
542
716
  params = {
543
- "__STYXTYPE__": "subtract",
717
+ "@type": "subtract",
544
718
  }
545
719
  return params
546
720
 
@@ -564,7 +738,7 @@ def mrcalc_subtract_cargs(
564
738
 
565
739
 
566
740
  def mrcalc_multiply_params(
567
- ) -> MrcalcMultiplyParameters:
741
+ ) -> MrcalcMultiplyParametersTagged:
568
742
  """
569
743
  Build parameters.
570
744
 
@@ -573,7 +747,7 @@ def mrcalc_multiply_params(
573
747
  Parameter dictionary
574
748
  """
575
749
  params = {
576
- "__STYXTYPE__": "multiply",
750
+ "@type": "multiply",
577
751
  }
578
752
  return params
579
753
 
@@ -597,7 +771,7 @@ def mrcalc_multiply_cargs(
597
771
 
598
772
 
599
773
  def mrcalc_divide_params(
600
- ) -> MrcalcDivideParameters:
774
+ ) -> MrcalcDivideParametersTagged:
601
775
  """
602
776
  Build parameters.
603
777
 
@@ -606,7 +780,7 @@ def mrcalc_divide_params(
606
780
  Parameter dictionary
607
781
  """
608
782
  params = {
609
- "__STYXTYPE__": "divide",
783
+ "@type": "divide",
610
784
  }
611
785
  return params
612
786
 
@@ -630,7 +804,7 @@ def mrcalc_divide_cargs(
630
804
 
631
805
 
632
806
  def mrcalc_min_params(
633
- ) -> MrcalcMinParameters:
807
+ ) -> MrcalcMinParametersTagged:
634
808
  """
635
809
  Build parameters.
636
810
 
@@ -639,7 +813,7 @@ def mrcalc_min_params(
639
813
  Parameter dictionary
640
814
  """
641
815
  params = {
642
- "__STYXTYPE__": "min",
816
+ "@type": "min",
643
817
  }
644
818
  return params
645
819
 
@@ -663,7 +837,7 @@ def mrcalc_min_cargs(
663
837
 
664
838
 
665
839
  def mrcalc_max_params(
666
- ) -> MrcalcMaxParameters:
840
+ ) -> MrcalcMaxParametersTagged:
667
841
  """
668
842
  Build parameters.
669
843
 
@@ -672,7 +846,7 @@ def mrcalc_max_params(
672
846
  Parameter dictionary
673
847
  """
674
848
  params = {
675
- "__STYXTYPE__": "max",
849
+ "@type": "max",
676
850
  }
677
851
  return params
678
852
 
@@ -696,7 +870,7 @@ def mrcalc_max_cargs(
696
870
 
697
871
 
698
872
  def mrcalc_lt_params(
699
- ) -> MrcalcLtParameters:
873
+ ) -> MrcalcLtParametersTagged:
700
874
  """
701
875
  Build parameters.
702
876
 
@@ -705,7 +879,7 @@ def mrcalc_lt_params(
705
879
  Parameter dictionary
706
880
  """
707
881
  params = {
708
- "__STYXTYPE__": "lt",
882
+ "@type": "lt",
709
883
  }
710
884
  return params
711
885
 
@@ -729,7 +903,7 @@ def mrcalc_lt_cargs(
729
903
 
730
904
 
731
905
  def mrcalc_gt_params(
732
- ) -> MrcalcGtParameters:
906
+ ) -> MrcalcGtParametersTagged:
733
907
  """
734
908
  Build parameters.
735
909
 
@@ -738,7 +912,7 @@ def mrcalc_gt_params(
738
912
  Parameter dictionary
739
913
  """
740
914
  params = {
741
- "__STYXTYPE__": "gt",
915
+ "@type": "gt",
742
916
  }
743
917
  return params
744
918
 
@@ -762,7 +936,7 @@ def mrcalc_gt_cargs(
762
936
 
763
937
 
764
938
  def mrcalc_le_params(
765
- ) -> MrcalcLeParameters:
939
+ ) -> MrcalcLeParametersTagged:
766
940
  """
767
941
  Build parameters.
768
942
 
@@ -771,7 +945,7 @@ def mrcalc_le_params(
771
945
  Parameter dictionary
772
946
  """
773
947
  params = {
774
- "__STYXTYPE__": "le",
948
+ "@type": "le",
775
949
  }
776
950
  return params
777
951
 
@@ -795,7 +969,7 @@ def mrcalc_le_cargs(
795
969
 
796
970
 
797
971
  def mrcalc_ge_params(
798
- ) -> MrcalcGeParameters:
972
+ ) -> MrcalcGeParametersTagged:
799
973
  """
800
974
  Build parameters.
801
975
 
@@ -804,7 +978,7 @@ def mrcalc_ge_params(
804
978
  Parameter dictionary
805
979
  """
806
980
  params = {
807
- "__STYXTYPE__": "ge",
981
+ "@type": "ge",
808
982
  }
809
983
  return params
810
984
 
@@ -828,7 +1002,7 @@ def mrcalc_ge_cargs(
828
1002
 
829
1003
 
830
1004
  def mrcalc_eq_params(
831
- ) -> MrcalcEqParameters:
1005
+ ) -> MrcalcEqParametersTagged:
832
1006
  """
833
1007
  Build parameters.
834
1008
 
@@ -837,7 +1011,7 @@ def mrcalc_eq_params(
837
1011
  Parameter dictionary
838
1012
  """
839
1013
  params = {
840
- "__STYXTYPE__": "eq",
1014
+ "@type": "eq",
841
1015
  }
842
1016
  return params
843
1017
 
@@ -861,7 +1035,7 @@ def mrcalc_eq_cargs(
861
1035
 
862
1036
 
863
1037
  def mrcalc_neq_params(
864
- ) -> MrcalcNeqParameters:
1038
+ ) -> MrcalcNeqParametersTagged:
865
1039
  """
866
1040
  Build parameters.
867
1041
 
@@ -870,7 +1044,7 @@ def mrcalc_neq_params(
870
1044
  Parameter dictionary
871
1045
  """
872
1046
  params = {
873
- "__STYXTYPE__": "neq",
1047
+ "@type": "neq",
874
1048
  }
875
1049
  return params
876
1050
 
@@ -894,7 +1068,7 @@ def mrcalc_neq_cargs(
894
1068
 
895
1069
 
896
1070
  def mrcalc_if_params(
897
- ) -> MrcalcIfParameters:
1071
+ ) -> MrcalcIfParametersTagged:
898
1072
  """
899
1073
  Build parameters.
900
1074
 
@@ -903,7 +1077,7 @@ def mrcalc_if_params(
903
1077
  Parameter dictionary
904
1078
  """
905
1079
  params = {
906
- "__STYXTYPE__": "if",
1080
+ "@type": "if",
907
1081
  }
908
1082
  return params
909
1083
 
@@ -927,7 +1101,7 @@ def mrcalc_if_cargs(
927
1101
 
928
1102
 
929
1103
  def mrcalc_replace_params(
930
- ) -> MrcalcReplaceParameters:
1104
+ ) -> MrcalcReplaceParametersTagged:
931
1105
  """
932
1106
  Build parameters.
933
1107
 
@@ -936,7 +1110,7 @@ def mrcalc_replace_params(
936
1110
  Parameter dictionary
937
1111
  """
938
1112
  params = {
939
- "__STYXTYPE__": "replace",
1113
+ "@type": "replace",
940
1114
  }
941
1115
  return params
942
1116
 
@@ -960,7 +1134,7 @@ def mrcalc_replace_cargs(
960
1134
 
961
1135
 
962
1136
  def mrcalc_sqrt_params(
963
- ) -> MrcalcSqrtParameters:
1137
+ ) -> MrcalcSqrtParametersTagged:
964
1138
  """
965
1139
  Build parameters.
966
1140
 
@@ -969,7 +1143,7 @@ def mrcalc_sqrt_params(
969
1143
  Parameter dictionary
970
1144
  """
971
1145
  params = {
972
- "__STYXTYPE__": "sqrt",
1146
+ "@type": "sqrt",
973
1147
  }
974
1148
  return params
975
1149
 
@@ -993,7 +1167,7 @@ def mrcalc_sqrt_cargs(
993
1167
 
994
1168
 
995
1169
  def mrcalc_pow_params(
996
- ) -> MrcalcPowParameters:
1170
+ ) -> MrcalcPowParametersTagged:
997
1171
  """
998
1172
  Build parameters.
999
1173
 
@@ -1002,7 +1176,7 @@ def mrcalc_pow_params(
1002
1176
  Parameter dictionary
1003
1177
  """
1004
1178
  params = {
1005
- "__STYXTYPE__": "pow",
1179
+ "@type": "pow",
1006
1180
  }
1007
1181
  return params
1008
1182
 
@@ -1026,7 +1200,7 @@ def mrcalc_pow_cargs(
1026
1200
 
1027
1201
 
1028
1202
  def mrcalc_round_params(
1029
- ) -> MrcalcRoundParameters:
1203
+ ) -> MrcalcRoundParametersTagged:
1030
1204
  """
1031
1205
  Build parameters.
1032
1206
 
@@ -1035,7 +1209,7 @@ def mrcalc_round_params(
1035
1209
  Parameter dictionary
1036
1210
  """
1037
1211
  params = {
1038
- "__STYXTYPE__": "round",
1212
+ "@type": "round",
1039
1213
  }
1040
1214
  return params
1041
1215
 
@@ -1059,7 +1233,7 @@ def mrcalc_round_cargs(
1059
1233
 
1060
1234
 
1061
1235
  def mrcalc_ceil_params(
1062
- ) -> MrcalcCeilParameters:
1236
+ ) -> MrcalcCeilParametersTagged:
1063
1237
  """
1064
1238
  Build parameters.
1065
1239
 
@@ -1068,7 +1242,7 @@ def mrcalc_ceil_params(
1068
1242
  Parameter dictionary
1069
1243
  """
1070
1244
  params = {
1071
- "__STYXTYPE__": "ceil",
1245
+ "@type": "ceil",
1072
1246
  }
1073
1247
  return params
1074
1248
 
@@ -1092,7 +1266,7 @@ def mrcalc_ceil_cargs(
1092
1266
 
1093
1267
 
1094
1268
  def mrcalc_floor_params(
1095
- ) -> MrcalcFloorParameters:
1269
+ ) -> MrcalcFloorParametersTagged:
1096
1270
  """
1097
1271
  Build parameters.
1098
1272
 
@@ -1101,7 +1275,7 @@ def mrcalc_floor_params(
1101
1275
  Parameter dictionary
1102
1276
  """
1103
1277
  params = {
1104
- "__STYXTYPE__": "floor",
1278
+ "@type": "floor",
1105
1279
  }
1106
1280
  return params
1107
1281
 
@@ -1125,7 +1299,7 @@ def mrcalc_floor_cargs(
1125
1299
 
1126
1300
 
1127
1301
  def mrcalc_not_params(
1128
- ) -> MrcalcNotParameters:
1302
+ ) -> MrcalcNotParametersTagged:
1129
1303
  """
1130
1304
  Build parameters.
1131
1305
 
@@ -1134,7 +1308,7 @@ def mrcalc_not_params(
1134
1308
  Parameter dictionary
1135
1309
  """
1136
1310
  params = {
1137
- "__STYXTYPE__": "not",
1311
+ "@type": "not",
1138
1312
  }
1139
1313
  return params
1140
1314
 
@@ -1158,7 +1332,7 @@ def mrcalc_not_cargs(
1158
1332
 
1159
1333
 
1160
1334
  def mrcalc_and_params(
1161
- ) -> MrcalcAndParameters:
1335
+ ) -> MrcalcAndParametersTagged:
1162
1336
  """
1163
1337
  Build parameters.
1164
1338
 
@@ -1167,7 +1341,7 @@ def mrcalc_and_params(
1167
1341
  Parameter dictionary
1168
1342
  """
1169
1343
  params = {
1170
- "__STYXTYPE__": "and",
1344
+ "@type": "and",
1171
1345
  }
1172
1346
  return params
1173
1347
 
@@ -1191,7 +1365,7 @@ def mrcalc_and_cargs(
1191
1365
 
1192
1366
 
1193
1367
  def mrcalc_or_params(
1194
- ) -> MrcalcOrParameters:
1368
+ ) -> MrcalcOrParametersTagged:
1195
1369
  """
1196
1370
  Build parameters.
1197
1371
 
@@ -1200,7 +1374,7 @@ def mrcalc_or_params(
1200
1374
  Parameter dictionary
1201
1375
  """
1202
1376
  params = {
1203
- "__STYXTYPE__": "or",
1377
+ "@type": "or",
1204
1378
  }
1205
1379
  return params
1206
1380
 
@@ -1224,7 +1398,7 @@ def mrcalc_or_cargs(
1224
1398
 
1225
1399
 
1226
1400
  def mrcalc_xor_params(
1227
- ) -> MrcalcXorParameters:
1401
+ ) -> MrcalcXorParametersTagged:
1228
1402
  """
1229
1403
  Build parameters.
1230
1404
 
@@ -1233,7 +1407,7 @@ def mrcalc_xor_params(
1233
1407
  Parameter dictionary
1234
1408
  """
1235
1409
  params = {
1236
- "__STYXTYPE__": "xor",
1410
+ "@type": "xor",
1237
1411
  }
1238
1412
  return params
1239
1413
 
@@ -1257,7 +1431,7 @@ def mrcalc_xor_cargs(
1257
1431
 
1258
1432
 
1259
1433
  def mrcalc_isnan_params(
1260
- ) -> MrcalcIsnanParameters:
1434
+ ) -> MrcalcIsnanParametersTagged:
1261
1435
  """
1262
1436
  Build parameters.
1263
1437
 
@@ -1266,7 +1440,7 @@ def mrcalc_isnan_params(
1266
1440
  Parameter dictionary
1267
1441
  """
1268
1442
  params = {
1269
- "__STYXTYPE__": "isnan",
1443
+ "@type": "isnan",
1270
1444
  }
1271
1445
  return params
1272
1446
 
@@ -1290,7 +1464,7 @@ def mrcalc_isnan_cargs(
1290
1464
 
1291
1465
 
1292
1466
  def mrcalc_isinf_params(
1293
- ) -> MrcalcIsinfParameters:
1467
+ ) -> MrcalcIsinfParametersTagged:
1294
1468
  """
1295
1469
  Build parameters.
1296
1470
 
@@ -1299,7 +1473,7 @@ def mrcalc_isinf_params(
1299
1473
  Parameter dictionary
1300
1474
  """
1301
1475
  params = {
1302
- "__STYXTYPE__": "isinf",
1476
+ "@type": "isinf",
1303
1477
  }
1304
1478
  return params
1305
1479
 
@@ -1323,7 +1497,7 @@ def mrcalc_isinf_cargs(
1323
1497
 
1324
1498
 
1325
1499
  def mrcalc_finite_params(
1326
- ) -> MrcalcFiniteParameters:
1500
+ ) -> MrcalcFiniteParametersTagged:
1327
1501
  """
1328
1502
  Build parameters.
1329
1503
 
@@ -1332,7 +1506,7 @@ def mrcalc_finite_params(
1332
1506
  Parameter dictionary
1333
1507
  """
1334
1508
  params = {
1335
- "__STYXTYPE__": "finite",
1509
+ "@type": "finite",
1336
1510
  }
1337
1511
  return params
1338
1512
 
@@ -1356,7 +1530,7 @@ def mrcalc_finite_cargs(
1356
1530
 
1357
1531
 
1358
1532
  def mrcalc_complex_params(
1359
- ) -> MrcalcComplexParameters:
1533
+ ) -> MrcalcComplexParametersTagged:
1360
1534
  """
1361
1535
  Build parameters.
1362
1536
 
@@ -1365,7 +1539,7 @@ def mrcalc_complex_params(
1365
1539
  Parameter dictionary
1366
1540
  """
1367
1541
  params = {
1368
- "__STYXTYPE__": "complex",
1542
+ "@type": "complex",
1369
1543
  }
1370
1544
  return params
1371
1545
 
@@ -1389,7 +1563,7 @@ def mrcalc_complex_cargs(
1389
1563
 
1390
1564
 
1391
1565
  def mrcalc_polar_params(
1392
- ) -> MrcalcPolarParameters:
1566
+ ) -> MrcalcPolarParametersTagged:
1393
1567
  """
1394
1568
  Build parameters.
1395
1569
 
@@ -1398,7 +1572,7 @@ def mrcalc_polar_params(
1398
1572
  Parameter dictionary
1399
1573
  """
1400
1574
  params = {
1401
- "__STYXTYPE__": "polar",
1575
+ "@type": "polar",
1402
1576
  }
1403
1577
  return params
1404
1578
 
@@ -1422,7 +1596,7 @@ def mrcalc_polar_cargs(
1422
1596
 
1423
1597
 
1424
1598
  def mrcalc_real_params(
1425
- ) -> MrcalcRealParameters:
1599
+ ) -> MrcalcRealParametersTagged:
1426
1600
  """
1427
1601
  Build parameters.
1428
1602
 
@@ -1431,7 +1605,7 @@ def mrcalc_real_params(
1431
1605
  Parameter dictionary
1432
1606
  """
1433
1607
  params = {
1434
- "__STYXTYPE__": "real",
1608
+ "@type": "real",
1435
1609
  }
1436
1610
  return params
1437
1611
 
@@ -1455,7 +1629,7 @@ def mrcalc_real_cargs(
1455
1629
 
1456
1630
 
1457
1631
  def mrcalc_imag_params(
1458
- ) -> MrcalcImagParameters:
1632
+ ) -> MrcalcImagParametersTagged:
1459
1633
  """
1460
1634
  Build parameters.
1461
1635
 
@@ -1464,7 +1638,7 @@ def mrcalc_imag_params(
1464
1638
  Parameter dictionary
1465
1639
  """
1466
1640
  params = {
1467
- "__STYXTYPE__": "imag",
1641
+ "@type": "imag",
1468
1642
  }
1469
1643
  return params
1470
1644
 
@@ -1488,7 +1662,7 @@ def mrcalc_imag_cargs(
1488
1662
 
1489
1663
 
1490
1664
  def mrcalc_phase_params(
1491
- ) -> MrcalcPhaseParameters:
1665
+ ) -> MrcalcPhaseParametersTagged:
1492
1666
  """
1493
1667
  Build parameters.
1494
1668
 
@@ -1497,7 +1671,7 @@ def mrcalc_phase_params(
1497
1671
  Parameter dictionary
1498
1672
  """
1499
1673
  params = {
1500
- "__STYXTYPE__": "phase",
1674
+ "@type": "phase",
1501
1675
  }
1502
1676
  return params
1503
1677
 
@@ -1521,7 +1695,7 @@ def mrcalc_phase_cargs(
1521
1695
 
1522
1696
 
1523
1697
  def mrcalc_conj_params(
1524
- ) -> MrcalcConjParameters:
1698
+ ) -> MrcalcConjParametersTagged:
1525
1699
  """
1526
1700
  Build parameters.
1527
1701
 
@@ -1530,7 +1704,7 @@ def mrcalc_conj_params(
1530
1704
  Parameter dictionary
1531
1705
  """
1532
1706
  params = {
1533
- "__STYXTYPE__": "conj",
1707
+ "@type": "conj",
1534
1708
  }
1535
1709
  return params
1536
1710
 
@@ -1554,7 +1728,7 @@ def mrcalc_conj_cargs(
1554
1728
 
1555
1729
 
1556
1730
  def mrcalc_proj_params(
1557
- ) -> MrcalcProjParameters:
1731
+ ) -> MrcalcProjParametersTagged:
1558
1732
  """
1559
1733
  Build parameters.
1560
1734
 
@@ -1563,7 +1737,7 @@ def mrcalc_proj_params(
1563
1737
  Parameter dictionary
1564
1738
  """
1565
1739
  params = {
1566
- "__STYXTYPE__": "proj",
1740
+ "@type": "proj",
1567
1741
  }
1568
1742
  return params
1569
1743
 
@@ -1587,7 +1761,7 @@ def mrcalc_proj_cargs(
1587
1761
 
1588
1762
 
1589
1763
  def mrcalc_exp_params(
1590
- ) -> MrcalcExpParameters:
1764
+ ) -> MrcalcExpParametersTagged:
1591
1765
  """
1592
1766
  Build parameters.
1593
1767
 
@@ -1596,7 +1770,7 @@ def mrcalc_exp_params(
1596
1770
  Parameter dictionary
1597
1771
  """
1598
1772
  params = {
1599
- "__STYXTYPE__": "exp",
1773
+ "@type": "exp",
1600
1774
  }
1601
1775
  return params
1602
1776
 
@@ -1620,7 +1794,7 @@ def mrcalc_exp_cargs(
1620
1794
 
1621
1795
 
1622
1796
  def mrcalc_log_params(
1623
- ) -> MrcalcLogParameters:
1797
+ ) -> MrcalcLogParametersTagged:
1624
1798
  """
1625
1799
  Build parameters.
1626
1800
 
@@ -1629,7 +1803,7 @@ def mrcalc_log_params(
1629
1803
  Parameter dictionary
1630
1804
  """
1631
1805
  params = {
1632
- "__STYXTYPE__": "log",
1806
+ "@type": "log",
1633
1807
  }
1634
1808
  return params
1635
1809
 
@@ -1653,7 +1827,7 @@ def mrcalc_log_cargs(
1653
1827
 
1654
1828
 
1655
1829
  def mrcalc_log10_params(
1656
- ) -> MrcalcLog10Parameters:
1830
+ ) -> MrcalcLog10ParametersTagged:
1657
1831
  """
1658
1832
  Build parameters.
1659
1833
 
@@ -1662,7 +1836,7 @@ def mrcalc_log10_params(
1662
1836
  Parameter dictionary
1663
1837
  """
1664
1838
  params = {
1665
- "__STYXTYPE__": "log10",
1839
+ "@type": "log10",
1666
1840
  }
1667
1841
  return params
1668
1842
 
@@ -1686,7 +1860,7 @@ def mrcalc_log10_cargs(
1686
1860
 
1687
1861
 
1688
1862
  def mrcalc_cos_params(
1689
- ) -> MrcalcCosParameters:
1863
+ ) -> MrcalcCosParametersTagged:
1690
1864
  """
1691
1865
  Build parameters.
1692
1866
 
@@ -1695,7 +1869,7 @@ def mrcalc_cos_params(
1695
1869
  Parameter dictionary
1696
1870
  """
1697
1871
  params = {
1698
- "__STYXTYPE__": "cos",
1872
+ "@type": "cos",
1699
1873
  }
1700
1874
  return params
1701
1875
 
@@ -1719,7 +1893,7 @@ def mrcalc_cos_cargs(
1719
1893
 
1720
1894
 
1721
1895
  def mrcalc_sin_params(
1722
- ) -> MrcalcSinParameters:
1896
+ ) -> MrcalcSinParametersTagged:
1723
1897
  """
1724
1898
  Build parameters.
1725
1899
 
@@ -1728,7 +1902,7 @@ def mrcalc_sin_params(
1728
1902
  Parameter dictionary
1729
1903
  """
1730
1904
  params = {
1731
- "__STYXTYPE__": "sin",
1905
+ "@type": "sin",
1732
1906
  }
1733
1907
  return params
1734
1908
 
@@ -1752,7 +1926,7 @@ def mrcalc_sin_cargs(
1752
1926
 
1753
1927
 
1754
1928
  def mrcalc_tan_params(
1755
- ) -> MrcalcTanParameters:
1929
+ ) -> MrcalcTanParametersTagged:
1756
1930
  """
1757
1931
  Build parameters.
1758
1932
 
@@ -1761,7 +1935,7 @@ def mrcalc_tan_params(
1761
1935
  Parameter dictionary
1762
1936
  """
1763
1937
  params = {
1764
- "__STYXTYPE__": "tan",
1938
+ "@type": "tan",
1765
1939
  }
1766
1940
  return params
1767
1941
 
@@ -1785,7 +1959,7 @@ def mrcalc_tan_cargs(
1785
1959
 
1786
1960
 
1787
1961
  def mrcalc_acos_params(
1788
- ) -> MrcalcAcosParameters:
1962
+ ) -> MrcalcAcosParametersTagged:
1789
1963
  """
1790
1964
  Build parameters.
1791
1965
 
@@ -1794,7 +1968,7 @@ def mrcalc_acos_params(
1794
1968
  Parameter dictionary
1795
1969
  """
1796
1970
  params = {
1797
- "__STYXTYPE__": "acos",
1971
+ "@type": "acos",
1798
1972
  }
1799
1973
  return params
1800
1974
 
@@ -1818,7 +1992,7 @@ def mrcalc_acos_cargs(
1818
1992
 
1819
1993
 
1820
1994
  def mrcalc_asin_params(
1821
- ) -> MrcalcAsinParameters:
1995
+ ) -> MrcalcAsinParametersTagged:
1822
1996
  """
1823
1997
  Build parameters.
1824
1998
 
@@ -1827,7 +2001,7 @@ def mrcalc_asin_params(
1827
2001
  Parameter dictionary
1828
2002
  """
1829
2003
  params = {
1830
- "__STYXTYPE__": "asin",
2004
+ "@type": "asin",
1831
2005
  }
1832
2006
  return params
1833
2007
 
@@ -1851,7 +2025,7 @@ def mrcalc_asin_cargs(
1851
2025
 
1852
2026
 
1853
2027
  def mrcalc_atan_params(
1854
- ) -> MrcalcAtanParameters:
2028
+ ) -> MrcalcAtanParametersTagged:
1855
2029
  """
1856
2030
  Build parameters.
1857
2031
 
@@ -1860,7 +2034,7 @@ def mrcalc_atan_params(
1860
2034
  Parameter dictionary
1861
2035
  """
1862
2036
  params = {
1863
- "__STYXTYPE__": "atan",
2037
+ "@type": "atan",
1864
2038
  }
1865
2039
  return params
1866
2040
 
@@ -1884,7 +2058,7 @@ def mrcalc_atan_cargs(
1884
2058
 
1885
2059
 
1886
2060
  def mrcalc_cosh_params(
1887
- ) -> MrcalcCoshParameters:
2061
+ ) -> MrcalcCoshParametersTagged:
1888
2062
  """
1889
2063
  Build parameters.
1890
2064
 
@@ -1893,7 +2067,7 @@ def mrcalc_cosh_params(
1893
2067
  Parameter dictionary
1894
2068
  """
1895
2069
  params = {
1896
- "__STYXTYPE__": "cosh",
2070
+ "@type": "cosh",
1897
2071
  }
1898
2072
  return params
1899
2073
 
@@ -1917,7 +2091,7 @@ def mrcalc_cosh_cargs(
1917
2091
 
1918
2092
 
1919
2093
  def mrcalc_sinh_params(
1920
- ) -> MrcalcSinhParameters:
2094
+ ) -> MrcalcSinhParametersTagged:
1921
2095
  """
1922
2096
  Build parameters.
1923
2097
 
@@ -1926,7 +2100,7 @@ def mrcalc_sinh_params(
1926
2100
  Parameter dictionary
1927
2101
  """
1928
2102
  params = {
1929
- "__STYXTYPE__": "sinh",
2103
+ "@type": "sinh",
1930
2104
  }
1931
2105
  return params
1932
2106
 
@@ -1950,7 +2124,7 @@ def mrcalc_sinh_cargs(
1950
2124
 
1951
2125
 
1952
2126
  def mrcalc_tanh_params(
1953
- ) -> MrcalcTanhParameters:
2127
+ ) -> MrcalcTanhParametersTagged:
1954
2128
  """
1955
2129
  Build parameters.
1956
2130
 
@@ -1959,7 +2133,7 @@ def mrcalc_tanh_params(
1959
2133
  Parameter dictionary
1960
2134
  """
1961
2135
  params = {
1962
- "__STYXTYPE__": "tanh",
2136
+ "@type": "tanh",
1963
2137
  }
1964
2138
  return params
1965
2139
 
@@ -1983,7 +2157,7 @@ def mrcalc_tanh_cargs(
1983
2157
 
1984
2158
 
1985
2159
  def mrcalc_acosh_params(
1986
- ) -> MrcalcAcoshParameters:
2160
+ ) -> MrcalcAcoshParametersTagged:
1987
2161
  """
1988
2162
  Build parameters.
1989
2163
 
@@ -1992,7 +2166,7 @@ def mrcalc_acosh_params(
1992
2166
  Parameter dictionary
1993
2167
  """
1994
2168
  params = {
1995
- "__STYXTYPE__": "acosh",
2169
+ "@type": "acosh",
1996
2170
  }
1997
2171
  return params
1998
2172
 
@@ -2016,7 +2190,7 @@ def mrcalc_acosh_cargs(
2016
2190
 
2017
2191
 
2018
2192
  def mrcalc_asinh_params(
2019
- ) -> MrcalcAsinhParameters:
2193
+ ) -> MrcalcAsinhParametersTagged:
2020
2194
  """
2021
2195
  Build parameters.
2022
2196
 
@@ -2025,7 +2199,7 @@ def mrcalc_asinh_params(
2025
2199
  Parameter dictionary
2026
2200
  """
2027
2201
  params = {
2028
- "__STYXTYPE__": "asinh",
2202
+ "@type": "asinh",
2029
2203
  }
2030
2204
  return params
2031
2205
 
@@ -2049,7 +2223,7 @@ def mrcalc_asinh_cargs(
2049
2223
 
2050
2224
 
2051
2225
  def mrcalc_atanh_params(
2052
- ) -> MrcalcAtanhParameters:
2226
+ ) -> MrcalcAtanhParametersTagged:
2053
2227
  """
2054
2228
  Build parameters.
2055
2229
 
@@ -2058,7 +2232,7 @@ def mrcalc_atanh_params(
2058
2232
  Parameter dictionary
2059
2233
  """
2060
2234
  params = {
2061
- "__STYXTYPE__": "atanh",
2235
+ "@type": "atanh",
2062
2236
  }
2063
2237
  return params
2064
2238
 
@@ -2084,7 +2258,7 @@ def mrcalc_atanh_cargs(
2084
2258
  def mrcalc_config_params(
2085
2259
  key: str,
2086
2260
  value: str,
2087
- ) -> MrcalcConfigParameters:
2261
+ ) -> MrcalcConfigParametersTagged:
2088
2262
  """
2089
2263
  Build parameters.
2090
2264
 
@@ -2095,7 +2269,7 @@ def mrcalc_config_params(
2095
2269
  Parameter dictionary
2096
2270
  """
2097
2271
  params = {
2098
- "__STYXTYPE__": "config",
2272
+ "@type": "config",
2099
2273
  "key": key,
2100
2274
  "value": value,
2101
2275
  }
@@ -2117,14 +2291,14 @@ def mrcalc_config_cargs(
2117
2291
  """
2118
2292
  cargs = []
2119
2293
  cargs.append("-config")
2120
- cargs.append(params.get("key"))
2121
- cargs.append(params.get("value"))
2294
+ cargs.append(params.get("key", None))
2295
+ cargs.append(params.get("value", None))
2122
2296
  return cargs
2123
2297
 
2124
2298
 
2125
2299
  def mrcalc_various_string_params(
2126
2300
  obj: str,
2127
- ) -> MrcalcVariousStringParameters:
2301
+ ) -> MrcalcVariousStringParametersTagged:
2128
2302
  """
2129
2303
  Build parameters.
2130
2304
 
@@ -2134,7 +2308,7 @@ def mrcalc_various_string_params(
2134
2308
  Parameter dictionary
2135
2309
  """
2136
2310
  params = {
2137
- "__STYXTYPE__": "VariousString",
2311
+ "@type": "VariousString",
2138
2312
  "obj": obj,
2139
2313
  }
2140
2314
  return params
@@ -2154,13 +2328,13 @@ def mrcalc_various_string_cargs(
2154
2328
  Command-line arguments.
2155
2329
  """
2156
2330
  cargs = []
2157
- cargs.append(params.get("obj"))
2331
+ cargs.append(params.get("obj", None))
2158
2332
  return cargs
2159
2333
 
2160
2334
 
2161
2335
  def mrcalc_various_file_params(
2162
2336
  obj: InputPathType,
2163
- ) -> MrcalcVariousFileParameters:
2337
+ ) -> MrcalcVariousFileParametersTagged:
2164
2338
  """
2165
2339
  Build parameters.
2166
2340
 
@@ -2170,7 +2344,7 @@ def mrcalc_various_file_params(
2170
2344
  Parameter dictionary
2171
2345
  """
2172
2346
  params = {
2173
- "__STYXTYPE__": "VariousFile",
2347
+ "@type": "VariousFile",
2174
2348
  "obj": obj,
2175
2349
  }
2176
2350
  return params
@@ -2190,20 +2364,20 @@ def mrcalc_various_file_cargs(
2190
2364
  Command-line arguments.
2191
2365
  """
2192
2366
  cargs = []
2193
- cargs.append(execution.input_file(params.get("obj")))
2367
+ cargs.append(execution.input_file(params.get("obj", None)))
2194
2368
  return cargs
2195
2369
 
2196
2370
 
2197
2371
  class MrcalcOutputs(typing.NamedTuple):
2198
2372
  """
2199
- Output object returned when calling `mrcalc(...)`.
2373
+ Output object returned when calling `MrcalcParameters(...)`.
2200
2374
  """
2201
2375
  root: OutputPathType
2202
2376
  """Output root folder. This is the root folder for all outputs."""
2203
2377
 
2204
2378
 
2205
2379
  def mrcalc_params(
2206
- operand: list[typing.Union[MrcalcVariousStringParameters, MrcalcVariousFileParameters]],
2380
+ operand: list[typing.Union[MrcalcVariousStringParametersTagged, MrcalcVariousFileParametersTagged]],
2207
2381
  abs_: list[MrcalcAbsParameters] | None = None,
2208
2382
  neg: list[MrcalcNegParameters] | None = None,
2209
2383
  add: list[MrcalcAddParameters] | None = None,
@@ -2263,7 +2437,7 @@ def mrcalc_params(
2263
2437
  config: list[MrcalcConfigParameters] | None = None,
2264
2438
  help_: bool = False,
2265
2439
  version: bool = False,
2266
- ) -> MrcalcParameters:
2440
+ ) -> MrcalcParametersTagged:
2267
2441
  """
2268
2442
  Build parameters.
2269
2443
 
@@ -2353,7 +2527,7 @@ def mrcalc_params(
2353
2527
  Parameter dictionary
2354
2528
  """
2355
2529
  params = {
2356
- "__STYXTYPE__": "mrcalc",
2530
+ "@type": "mrtrix/mrcalc",
2357
2531
  "info": info,
2358
2532
  "quiet": quiet,
2359
2533
  "debug": debug,
@@ -2486,131 +2660,131 @@ def mrcalc_cargs(
2486
2660
  """
2487
2661
  cargs = []
2488
2662
  cargs.append("mrcalc")
2489
- if params.get("abs") is not None:
2490
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("abs")] for a in c])
2491
- if params.get("neg") is not None:
2492
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("neg")] for a in c])
2493
- if params.get("add") is not None:
2494
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("add")] for a in c])
2495
- if params.get("subtract") is not None:
2496
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("subtract")] for a in c])
2497
- if params.get("multiply") is not None:
2498
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("multiply")] for a in c])
2499
- if params.get("divide") is not None:
2500
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("divide")] for a in c])
2501
- if params.get("min") is not None:
2502
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("min")] for a in c])
2503
- if params.get("max") is not None:
2504
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("max")] for a in c])
2505
- if params.get("lt") is not None:
2506
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("lt")] for a in c])
2507
- if params.get("gt") is not None:
2508
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("gt")] for a in c])
2509
- if params.get("le") is not None:
2510
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("le")] for a in c])
2511
- if params.get("ge") is not None:
2512
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("ge")] for a in c])
2513
- if params.get("eq") is not None:
2514
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("eq")] for a in c])
2515
- if params.get("neq") is not None:
2516
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("neq")] for a in c])
2517
- if params.get("if") is not None:
2518
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("if")] for a in c])
2519
- if params.get("replace") is not None:
2520
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("replace")] for a in c])
2521
- if params.get("sqrt") is not None:
2522
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("sqrt")] for a in c])
2523
- if params.get("pow") is not None:
2524
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("pow")] for a in c])
2525
- if params.get("round") is not None:
2526
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("round")] for a in c])
2527
- if params.get("ceil") is not None:
2528
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("ceil")] for a in c])
2529
- if params.get("floor") is not None:
2530
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("floor")] for a in c])
2531
- if params.get("not") is not None:
2532
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("not")] for a in c])
2533
- if params.get("and") is not None:
2534
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("and")] for a in c])
2535
- if params.get("or") is not None:
2536
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("or")] for a in c])
2537
- if params.get("xor") is not None:
2538
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("xor")] for a in c])
2539
- if params.get("isnan") is not None:
2540
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("isnan")] for a in c])
2541
- if params.get("isinf") is not None:
2542
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("isinf")] for a in c])
2543
- if params.get("finite") is not None:
2544
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("finite")] for a in c])
2545
- if params.get("complex") is not None:
2546
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("complex")] for a in c])
2547
- if params.get("polar") is not None:
2548
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("polar")] for a in c])
2549
- if params.get("real") is not None:
2550
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("real")] for a in c])
2551
- if params.get("imag") is not None:
2552
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("imag")] for a in c])
2553
- if params.get("phase") is not None:
2554
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("phase")] for a in c])
2555
- if params.get("conj") is not None:
2556
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("conj")] for a in c])
2557
- if params.get("proj") is not None:
2558
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("proj")] for a in c])
2559
- if params.get("exp") is not None:
2560
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("exp")] for a in c])
2561
- if params.get("log") is not None:
2562
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("log")] for a in c])
2563
- if params.get("log10") is not None:
2564
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("log10")] for a in c])
2565
- if params.get("cos") is not None:
2566
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("cos")] for a in c])
2567
- if params.get("sin") is not None:
2568
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("sin")] for a in c])
2569
- if params.get("tan") is not None:
2570
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("tan")] for a in c])
2571
- if params.get("acos") is not None:
2572
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("acos")] for a in c])
2573
- if params.get("asin") is not None:
2574
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("asin")] for a in c])
2575
- if params.get("atan") is not None:
2576
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("atan")] for a in c])
2577
- if params.get("cosh") is not None:
2578
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("cosh")] for a in c])
2579
- if params.get("sinh") is not None:
2580
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("sinh")] for a in c])
2581
- if params.get("tanh") is not None:
2582
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("tanh")] for a in c])
2583
- if params.get("acosh") is not None:
2584
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("acosh")] for a in c])
2585
- if params.get("asinh") is not None:
2586
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("asinh")] for a in c])
2587
- if params.get("atanh") is not None:
2588
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("atanh")] for a in c])
2589
- if params.get("datatype") is not None:
2663
+ if params.get("abs", None) is not None:
2664
+ cargs.extend([a for c in [mrcalc_abs_cargs(s, execution) for s in params.get("abs", None)] for a in c])
2665
+ if params.get("neg", None) is not None:
2666
+ cargs.extend([a for c in [mrcalc_neg_cargs(s, execution) for s in params.get("neg", None)] for a in c])
2667
+ if params.get("add", None) is not None:
2668
+ cargs.extend([a for c in [mrcalc_add_cargs(s, execution) for s in params.get("add", None)] for a in c])
2669
+ if params.get("subtract", None) is not None:
2670
+ cargs.extend([a for c in [mrcalc_subtract_cargs(s, execution) for s in params.get("subtract", None)] for a in c])
2671
+ if params.get("multiply", None) is not None:
2672
+ cargs.extend([a for c in [mrcalc_multiply_cargs(s, execution) for s in params.get("multiply", None)] for a in c])
2673
+ if params.get("divide", None) is not None:
2674
+ cargs.extend([a for c in [mrcalc_divide_cargs(s, execution) for s in params.get("divide", None)] for a in c])
2675
+ if params.get("min", None) is not None:
2676
+ cargs.extend([a for c in [mrcalc_min_cargs(s, execution) for s in params.get("min", None)] for a in c])
2677
+ if params.get("max", None) is not None:
2678
+ cargs.extend([a for c in [mrcalc_max_cargs(s, execution) for s in params.get("max", None)] for a in c])
2679
+ if params.get("lt", None) is not None:
2680
+ cargs.extend([a for c in [mrcalc_lt_cargs(s, execution) for s in params.get("lt", None)] for a in c])
2681
+ if params.get("gt", None) is not None:
2682
+ cargs.extend([a for c in [mrcalc_gt_cargs(s, execution) for s in params.get("gt", None)] for a in c])
2683
+ if params.get("le", None) is not None:
2684
+ cargs.extend([a for c in [mrcalc_le_cargs(s, execution) for s in params.get("le", None)] for a in c])
2685
+ if params.get("ge", None) is not None:
2686
+ cargs.extend([a for c in [mrcalc_ge_cargs(s, execution) for s in params.get("ge", None)] for a in c])
2687
+ if params.get("eq", None) is not None:
2688
+ cargs.extend([a for c in [mrcalc_eq_cargs(s, execution) for s in params.get("eq", None)] for a in c])
2689
+ if params.get("neq", None) is not None:
2690
+ cargs.extend([a for c in [mrcalc_neq_cargs(s, execution) for s in params.get("neq", None)] for a in c])
2691
+ if params.get("if", None) is not None:
2692
+ cargs.extend([a for c in [mrcalc_if_cargs(s, execution) for s in params.get("if", None)] for a in c])
2693
+ if params.get("replace", None) is not None:
2694
+ cargs.extend([a for c in [mrcalc_replace_cargs(s, execution) for s in params.get("replace", None)] for a in c])
2695
+ if params.get("sqrt", None) is not None:
2696
+ cargs.extend([a for c in [mrcalc_sqrt_cargs(s, execution) for s in params.get("sqrt", None)] for a in c])
2697
+ if params.get("pow", None) is not None:
2698
+ cargs.extend([a for c in [mrcalc_pow_cargs(s, execution) for s in params.get("pow", None)] for a in c])
2699
+ if params.get("round", None) is not None:
2700
+ cargs.extend([a for c in [mrcalc_round_cargs(s, execution) for s in params.get("round", None)] for a in c])
2701
+ if params.get("ceil", None) is not None:
2702
+ cargs.extend([a for c in [mrcalc_ceil_cargs(s, execution) for s in params.get("ceil", None)] for a in c])
2703
+ if params.get("floor", None) is not None:
2704
+ cargs.extend([a for c in [mrcalc_floor_cargs(s, execution) for s in params.get("floor", None)] for a in c])
2705
+ if params.get("not", None) is not None:
2706
+ cargs.extend([a for c in [mrcalc_not_cargs(s, execution) for s in params.get("not", None)] for a in c])
2707
+ if params.get("and", None) is not None:
2708
+ cargs.extend([a for c in [mrcalc_and_cargs(s, execution) for s in params.get("and", None)] for a in c])
2709
+ if params.get("or", None) is not None:
2710
+ cargs.extend([a for c in [mrcalc_or_cargs(s, execution) for s in params.get("or", None)] for a in c])
2711
+ if params.get("xor", None) is not None:
2712
+ cargs.extend([a for c in [mrcalc_xor_cargs(s, execution) for s in params.get("xor", None)] for a in c])
2713
+ if params.get("isnan", None) is not None:
2714
+ cargs.extend([a for c in [mrcalc_isnan_cargs(s, execution) for s in params.get("isnan", None)] for a in c])
2715
+ if params.get("isinf", None) is not None:
2716
+ cargs.extend([a for c in [mrcalc_isinf_cargs(s, execution) for s in params.get("isinf", None)] for a in c])
2717
+ if params.get("finite", None) is not None:
2718
+ cargs.extend([a for c in [mrcalc_finite_cargs(s, execution) for s in params.get("finite", None)] for a in c])
2719
+ if params.get("complex", None) is not None:
2720
+ cargs.extend([a for c in [mrcalc_complex_cargs(s, execution) for s in params.get("complex", None)] for a in c])
2721
+ if params.get("polar", None) is not None:
2722
+ cargs.extend([a for c in [mrcalc_polar_cargs(s, execution) for s in params.get("polar", None)] for a in c])
2723
+ if params.get("real", None) is not None:
2724
+ cargs.extend([a for c in [mrcalc_real_cargs(s, execution) for s in params.get("real", None)] for a in c])
2725
+ if params.get("imag", None) is not None:
2726
+ cargs.extend([a for c in [mrcalc_imag_cargs(s, execution) for s in params.get("imag", None)] for a in c])
2727
+ if params.get("phase", None) is not None:
2728
+ cargs.extend([a for c in [mrcalc_phase_cargs(s, execution) for s in params.get("phase", None)] for a in c])
2729
+ if params.get("conj", None) is not None:
2730
+ cargs.extend([a for c in [mrcalc_conj_cargs(s, execution) for s in params.get("conj", None)] for a in c])
2731
+ if params.get("proj", None) is not None:
2732
+ cargs.extend([a for c in [mrcalc_proj_cargs(s, execution) for s in params.get("proj", None)] for a in c])
2733
+ if params.get("exp", None) is not None:
2734
+ cargs.extend([a for c in [mrcalc_exp_cargs(s, execution) for s in params.get("exp", None)] for a in c])
2735
+ if params.get("log", None) is not None:
2736
+ cargs.extend([a for c in [mrcalc_log_cargs(s, execution) for s in params.get("log", None)] for a in c])
2737
+ if params.get("log10", None) is not None:
2738
+ cargs.extend([a for c in [mrcalc_log10_cargs(s, execution) for s in params.get("log10", None)] for a in c])
2739
+ if params.get("cos", None) is not None:
2740
+ cargs.extend([a for c in [mrcalc_cos_cargs(s, execution) for s in params.get("cos", None)] for a in c])
2741
+ if params.get("sin", None) is not None:
2742
+ cargs.extend([a for c in [mrcalc_sin_cargs(s, execution) for s in params.get("sin", None)] for a in c])
2743
+ if params.get("tan", None) is not None:
2744
+ cargs.extend([a for c in [mrcalc_tan_cargs(s, execution) for s in params.get("tan", None)] for a in c])
2745
+ if params.get("acos", None) is not None:
2746
+ cargs.extend([a for c in [mrcalc_acos_cargs(s, execution) for s in params.get("acos", None)] for a in c])
2747
+ if params.get("asin", None) is not None:
2748
+ cargs.extend([a for c in [mrcalc_asin_cargs(s, execution) for s in params.get("asin", None)] for a in c])
2749
+ if params.get("atan", None) is not None:
2750
+ cargs.extend([a for c in [mrcalc_atan_cargs(s, execution) for s in params.get("atan", None)] for a in c])
2751
+ if params.get("cosh", None) is not None:
2752
+ cargs.extend([a for c in [mrcalc_cosh_cargs(s, execution) for s in params.get("cosh", None)] for a in c])
2753
+ if params.get("sinh", None) is not None:
2754
+ cargs.extend([a for c in [mrcalc_sinh_cargs(s, execution) for s in params.get("sinh", None)] for a in c])
2755
+ if params.get("tanh", None) is not None:
2756
+ cargs.extend([a for c in [mrcalc_tanh_cargs(s, execution) for s in params.get("tanh", None)] for a in c])
2757
+ if params.get("acosh", None) is not None:
2758
+ cargs.extend([a for c in [mrcalc_acosh_cargs(s, execution) for s in params.get("acosh", None)] for a in c])
2759
+ if params.get("asinh", None) is not None:
2760
+ cargs.extend([a for c in [mrcalc_asinh_cargs(s, execution) for s in params.get("asinh", None)] for a in c])
2761
+ if params.get("atanh", None) is not None:
2762
+ cargs.extend([a for c in [mrcalc_atanh_cargs(s, execution) for s in params.get("atanh", None)] for a in c])
2763
+ if params.get("datatype", None) is not None:
2590
2764
  cargs.extend([
2591
2765
  "-datatype",
2592
- params.get("datatype")
2766
+ params.get("datatype", None)
2593
2767
  ])
2594
- if params.get("info"):
2768
+ if params.get("info", False):
2595
2769
  cargs.append("-info")
2596
- if params.get("quiet"):
2770
+ if params.get("quiet", False):
2597
2771
  cargs.append("-quiet")
2598
- if params.get("debug"):
2772
+ if params.get("debug", False):
2599
2773
  cargs.append("-debug")
2600
- if params.get("force"):
2774
+ if params.get("force", False):
2601
2775
  cargs.append("-force")
2602
- if params.get("nthreads") is not None:
2776
+ if params.get("nthreads", None) is not None:
2603
2777
  cargs.extend([
2604
2778
  "-nthreads",
2605
- str(params.get("nthreads"))
2779
+ str(params.get("nthreads", None))
2606
2780
  ])
2607
- if params.get("config") is not None:
2608
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
2609
- if params.get("help"):
2781
+ if params.get("config", None) is not None:
2782
+ cargs.extend([a for c in [mrcalc_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
2783
+ if params.get("help", False):
2610
2784
  cargs.append("-help")
2611
- if params.get("version"):
2785
+ if params.get("version", False):
2612
2786
  cargs.append("-version")
2613
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("operand")] for a in c])
2787
+ cargs.extend([a for c in [mrcalc_operand_cargs_dyn_fn(s["@type"])(s, execution) for s in params.get("operand", None)] for a in c])
2614
2788
  return cargs
2615
2789
 
2616
2790
 
@@ -2635,9 +2809,11 @@ def mrcalc_outputs(
2635
2809
 
2636
2810
  def mrcalc_execute(
2637
2811
  params: MrcalcParameters,
2638
- execution: Execution,
2812
+ runner: Runner | None = None,
2639
2813
  ) -> MrcalcOutputs:
2640
2814
  """
2815
+ mrcalc
2816
+
2641
2817
  Apply generic voxel-wise mathematical operations to images.
2642
2818
 
2643
2819
  This command will only compute per-voxel operations. Use 'mrmath' to compute
@@ -2672,10 +2848,12 @@ def mrcalc_execute(
2672
2848
 
2673
2849
  Args:
2674
2850
  params: The parameters.
2675
- execution: The execution object.
2851
+ runner: Command runner.
2676
2852
  Returns:
2677
2853
  NamedTuple of outputs (described in `MrcalcOutputs`).
2678
2854
  """
2855
+ runner = runner or get_global_runner()
2856
+ execution = runner.start_execution(MRCALC_METADATA)
2679
2857
  params = execution.params(params)
2680
2858
  cargs = mrcalc_cargs(params, execution)
2681
2859
  ret = mrcalc_outputs(params, execution)
@@ -2684,7 +2862,7 @@ def mrcalc_execute(
2684
2862
 
2685
2863
 
2686
2864
  def mrcalc(
2687
- operand: list[typing.Union[MrcalcVariousStringParameters, MrcalcVariousFileParameters]],
2865
+ operand: list[typing.Union[MrcalcVariousStringParametersTagged, MrcalcVariousFileParametersTagged]],
2688
2866
  abs_: list[MrcalcAbsParameters] | None = None,
2689
2867
  neg: list[MrcalcNegParameters] | None = None,
2690
2868
  add: list[MrcalcAddParameters] | None = None,
@@ -2747,6 +2925,8 @@ def mrcalc(
2747
2925
  runner: Runner | None = None,
2748
2926
  ) -> MrcalcOutputs:
2749
2927
  """
2928
+ mrcalc
2929
+
2750
2930
  Apply generic voxel-wise mathematical operations to images.
2751
2931
 
2752
2932
  This command will only compute per-voxel operations. Use 'mrmath' to compute
@@ -2865,8 +3045,6 @@ def mrcalc(
2865
3045
  Returns:
2866
3046
  NamedTuple of outputs (described in `MrcalcOutputs`).
2867
3047
  """
2868
- runner = runner or get_global_runner()
2869
- execution = runner.start_execution(MRCALC_METADATA)
2870
3048
  params = mrcalc_params(
2871
3049
  abs_=abs_,
2872
3050
  neg=neg,
@@ -2929,66 +3107,12 @@ def mrcalc(
2929
3107
  version=version,
2930
3108
  operand=operand,
2931
3109
  )
2932
- return mrcalc_execute(params, execution)
3110
+ return mrcalc_execute(params, runner)
2933
3111
 
2934
3112
 
2935
3113
  __all__ = [
2936
3114
  "MRCALC_METADATA",
2937
- "MrcalcAbsParameters",
2938
- "MrcalcAcosParameters",
2939
- "MrcalcAcoshParameters",
2940
- "MrcalcAddParameters",
2941
- "MrcalcAndParameters",
2942
- "MrcalcAsinParameters",
2943
- "MrcalcAsinhParameters",
2944
- "MrcalcAtanParameters",
2945
- "MrcalcAtanhParameters",
2946
- "MrcalcCeilParameters",
2947
- "MrcalcComplexParameters",
2948
- "MrcalcConfigParameters",
2949
- "MrcalcConjParameters",
2950
- "MrcalcCosParameters",
2951
- "MrcalcCoshParameters",
2952
- "MrcalcDivideParameters",
2953
- "MrcalcEqParameters",
2954
- "MrcalcExpParameters",
2955
- "MrcalcFiniteParameters",
2956
- "MrcalcFloorParameters",
2957
- "MrcalcGeParameters",
2958
- "MrcalcGtParameters",
2959
- "MrcalcIfParameters",
2960
- "MrcalcImagParameters",
2961
- "MrcalcIsinfParameters",
2962
- "MrcalcIsnanParameters",
2963
- "MrcalcLeParameters",
2964
- "MrcalcLog10Parameters",
2965
- "MrcalcLogParameters",
2966
- "MrcalcLtParameters",
2967
- "MrcalcMaxParameters",
2968
- "MrcalcMinParameters",
2969
- "MrcalcMultiplyParameters",
2970
- "MrcalcNegParameters",
2971
- "MrcalcNeqParameters",
2972
- "MrcalcNotParameters",
2973
- "MrcalcOrParameters",
2974
3115
  "MrcalcOutputs",
2975
- "MrcalcParameters",
2976
- "MrcalcPhaseParameters",
2977
- "MrcalcPolarParameters",
2978
- "MrcalcPowParameters",
2979
- "MrcalcProjParameters",
2980
- "MrcalcRealParameters",
2981
- "MrcalcReplaceParameters",
2982
- "MrcalcRoundParameters",
2983
- "MrcalcSinParameters",
2984
- "MrcalcSinhParameters",
2985
- "MrcalcSqrtParameters",
2986
- "MrcalcSubtractParameters",
2987
- "MrcalcTanParameters",
2988
- "MrcalcTanhParameters",
2989
- "MrcalcVariousFileParameters",
2990
- "MrcalcVariousStringParameters",
2991
- "MrcalcXorParameters",
2992
3116
  "mrcalc",
2993
3117
  "mrcalc_abs_params",
2994
3118
  "mrcalc_acos_params",
@@ -3007,6 +3131,7 @@ __all__ = [
3007
3131
  "mrcalc_cosh_params",
3008
3132
  "mrcalc_divide_params",
3009
3133
  "mrcalc_eq_params",
3134
+ "mrcalc_execute",
3010
3135
  "mrcalc_exp_params",
3011
3136
  "mrcalc_finite_params",
3012
3137
  "mrcalc_floor_params",