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
  MREDIT_METADATA = Metadata(
9
- id="9ffef6548a8d55005ba7462a213b391f4d2da89f.boutiques",
9
+ id="678a737a8aca3b1d9299ee0e4e4b44fe21b937dd.boutiques",
10
10
  name="mredit",
11
11
  package="mrtrix",
12
12
  container_image_tag="mrtrix3/mrtrix3:3.0.4",
@@ -14,7 +14,13 @@ MREDIT_METADATA = Metadata(
14
14
 
15
15
 
16
16
  MreditPlaneParameters = typing.TypedDict('MreditPlaneParameters', {
17
- "__STYXTYPE__": typing.Literal["plane"],
17
+ "@type": typing.NotRequired[typing.Literal["plane"]],
18
+ "axis": int,
19
+ "coord": list[int],
20
+ "value": float,
21
+ })
22
+ MreditPlaneParametersTagged = typing.TypedDict('MreditPlaneParametersTagged', {
23
+ "@type": typing.Literal["plane"],
18
24
  "axis": int,
19
25
  "coord": list[int],
20
26
  "value": float,
@@ -22,7 +28,13 @@ MreditPlaneParameters = typing.TypedDict('MreditPlaneParameters', {
22
28
 
23
29
 
24
30
  MreditSphereParameters = typing.TypedDict('MreditSphereParameters', {
25
- "__STYXTYPE__": typing.Literal["sphere"],
31
+ "@type": typing.NotRequired[typing.Literal["sphere"]],
32
+ "position": list[float],
33
+ "radius": float,
34
+ "value": float,
35
+ })
36
+ MreditSphereParametersTagged = typing.TypedDict('MreditSphereParametersTagged', {
37
+ "@type": typing.Literal["sphere"],
26
38
  "position": list[float],
27
39
  "radius": float,
28
40
  "value": float,
@@ -30,21 +42,48 @@ MreditSphereParameters = typing.TypedDict('MreditSphereParameters', {
30
42
 
31
43
 
32
44
  MreditVoxelParameters = typing.TypedDict('MreditVoxelParameters', {
33
- "__STYXTYPE__": typing.Literal["voxel"],
45
+ "@type": typing.NotRequired[typing.Literal["voxel"]],
46
+ "position": list[float],
47
+ "value": float,
48
+ })
49
+ MreditVoxelParametersTagged = typing.TypedDict('MreditVoxelParametersTagged', {
50
+ "@type": typing.Literal["voxel"],
34
51
  "position": list[float],
35
52
  "value": float,
36
53
  })
37
54
 
38
55
 
39
56
  MreditConfigParameters = typing.TypedDict('MreditConfigParameters', {
40
- "__STYXTYPE__": typing.Literal["config"],
57
+ "@type": typing.NotRequired[typing.Literal["config"]],
58
+ "key": str,
59
+ "value": str,
60
+ })
61
+ MreditConfigParametersTagged = typing.TypedDict('MreditConfigParametersTagged', {
62
+ "@type": typing.Literal["config"],
41
63
  "key": str,
42
64
  "value": str,
43
65
  })
44
66
 
45
67
 
46
68
  MreditParameters = typing.TypedDict('MreditParameters', {
47
- "__STYXTYPE__": typing.Literal["mredit"],
69
+ "@type": typing.NotRequired[typing.Literal["mrtrix/mredit"]],
70
+ "plane": typing.NotRequired[list[MreditPlaneParameters] | None],
71
+ "sphere": typing.NotRequired[list[MreditSphereParameters] | None],
72
+ "voxel": typing.NotRequired[list[MreditVoxelParameters] | None],
73
+ "scanner": bool,
74
+ "info": bool,
75
+ "quiet": bool,
76
+ "debug": bool,
77
+ "force": bool,
78
+ "nthreads": typing.NotRequired[int | None],
79
+ "config": typing.NotRequired[list[MreditConfigParameters] | None],
80
+ "help": bool,
81
+ "version": bool,
82
+ "input": InputPathType,
83
+ "output": typing.NotRequired[str | None],
84
+ })
85
+ MreditParametersTagged = typing.TypedDict('MreditParametersTagged', {
86
+ "@type": typing.Literal["mrtrix/mredit"],
48
87
  "plane": typing.NotRequired[list[MreditPlaneParameters] | None],
49
88
  "sphere": typing.NotRequired[list[MreditSphereParameters] | None],
50
89
  "voxel": typing.NotRequired[list[MreditVoxelParameters] | None],
@@ -60,49 +99,13 @@ MreditParameters = typing.TypedDict('MreditParameters', {
60
99
  "input": InputPathType,
61
100
  "output": typing.NotRequired[str | None],
62
101
  })
63
-
64
-
65
- def dyn_cargs(
66
- t: str,
67
- ) -> typing.Any:
68
- """
69
- Get build cargs function by command type.
70
-
71
- Args:
72
- t: Command type.
73
- Returns:
74
- Build cargs function.
75
- """
76
- return {
77
- "mredit": mredit_cargs,
78
- "plane": mredit_plane_cargs,
79
- "sphere": mredit_sphere_cargs,
80
- "voxel": mredit_voxel_cargs,
81
- "config": mredit_config_cargs,
82
- }.get(t)
83
-
84
-
85
- def dyn_outputs(
86
- t: str,
87
- ) -> typing.Any:
88
- """
89
- Get build outputs function by command type.
90
-
91
- Args:
92
- t: Command type.
93
- Returns:
94
- Build outputs function.
95
- """
96
- return {
97
- "mredit": mredit_outputs,
98
- }.get(t)
99
102
 
100
103
 
101
104
  def mredit_plane_params(
102
105
  axis: int,
103
106
  coord: list[int],
104
107
  value: float,
105
- ) -> MreditPlaneParameters:
108
+ ) -> MreditPlaneParametersTagged:
106
109
  """
107
110
  Build parameters.
108
111
 
@@ -114,7 +117,7 @@ def mredit_plane_params(
114
117
  Parameter dictionary
115
118
  """
116
119
  params = {
117
- "__STYXTYPE__": "plane",
120
+ "@type": "plane",
118
121
  "axis": axis,
119
122
  "coord": coord,
120
123
  "value": value,
@@ -137,9 +140,9 @@ def mredit_plane_cargs(
137
140
  """
138
141
  cargs = []
139
142
  cargs.append("-plane")
140
- cargs.append(str(params.get("axis")))
141
- cargs.extend(map(str, params.get("coord")))
142
- cargs.append(str(params.get("value")))
143
+ cargs.append(str(params.get("axis", None)))
144
+ cargs.extend(map(str, params.get("coord", None)))
145
+ cargs.append(str(params.get("value", None)))
143
146
  return cargs
144
147
 
145
148
 
@@ -147,7 +150,7 @@ def mredit_sphere_params(
147
150
  position: list[float],
148
151
  radius: float,
149
152
  value: float,
150
- ) -> MreditSphereParameters:
153
+ ) -> MreditSphereParametersTagged:
151
154
  """
152
155
  Build parameters.
153
156
 
@@ -159,7 +162,7 @@ def mredit_sphere_params(
159
162
  Parameter dictionary
160
163
  """
161
164
  params = {
162
- "__STYXTYPE__": "sphere",
165
+ "@type": "sphere",
163
166
  "position": position,
164
167
  "radius": radius,
165
168
  "value": value,
@@ -182,16 +185,16 @@ def mredit_sphere_cargs(
182
185
  """
183
186
  cargs = []
184
187
  cargs.append("-sphere")
185
- cargs.extend(map(str, params.get("position")))
186
- cargs.append(str(params.get("radius")))
187
- cargs.append(str(params.get("value")))
188
+ cargs.extend(map(str, params.get("position", None)))
189
+ cargs.append(str(params.get("radius", None)))
190
+ cargs.append(str(params.get("value", None)))
188
191
  return cargs
189
192
 
190
193
 
191
194
  def mredit_voxel_params(
192
195
  position: list[float],
193
196
  value: float,
194
- ) -> MreditVoxelParameters:
197
+ ) -> MreditVoxelParametersTagged:
195
198
  """
196
199
  Build parameters.
197
200
 
@@ -202,7 +205,7 @@ def mredit_voxel_params(
202
205
  Parameter dictionary
203
206
  """
204
207
  params = {
205
- "__STYXTYPE__": "voxel",
208
+ "@type": "voxel",
206
209
  "position": position,
207
210
  "value": value,
208
211
  }
@@ -224,15 +227,15 @@ def mredit_voxel_cargs(
224
227
  """
225
228
  cargs = []
226
229
  cargs.append("-voxel")
227
- cargs.extend(map(str, params.get("position")))
228
- cargs.append(str(params.get("value")))
230
+ cargs.extend(map(str, params.get("position", None)))
231
+ cargs.append(str(params.get("value", None)))
229
232
  return cargs
230
233
 
231
234
 
232
235
  def mredit_config_params(
233
236
  key: str,
234
237
  value: str,
235
- ) -> MreditConfigParameters:
238
+ ) -> MreditConfigParametersTagged:
236
239
  """
237
240
  Build parameters.
238
241
 
@@ -243,7 +246,7 @@ def mredit_config_params(
243
246
  Parameter dictionary
244
247
  """
245
248
  params = {
246
- "__STYXTYPE__": "config",
249
+ "@type": "config",
247
250
  "key": key,
248
251
  "value": value,
249
252
  }
@@ -265,14 +268,14 @@ def mredit_config_cargs(
265
268
  """
266
269
  cargs = []
267
270
  cargs.append("-config")
268
- cargs.append(params.get("key"))
269
- cargs.append(params.get("value"))
271
+ cargs.append(params.get("key", None))
272
+ cargs.append(params.get("value", None))
270
273
  return cargs
271
274
 
272
275
 
273
276
  class MreditOutputs(typing.NamedTuple):
274
277
  """
275
- Output object returned when calling `mredit(...)`.
278
+ Output object returned when calling `MreditParameters(...)`.
276
279
  """
277
280
  root: OutputPathType
278
281
  """Output root folder. This is the root folder for all outputs."""
@@ -295,7 +298,7 @@ def mredit_params(
295
298
  help_: bool = False,
296
299
  version: bool = False,
297
300
  output: str | None = None,
298
- ) -> MreditParameters:
301
+ ) -> MreditParametersTagged:
299
302
  """
300
303
  Build parameters.
301
304
 
@@ -323,7 +326,7 @@ def mredit_params(
323
326
  Parameter dictionary
324
327
  """
325
328
  params = {
326
- "__STYXTYPE__": "mredit",
329
+ "@type": "mrtrix/mredit",
327
330
  "scanner": scanner,
328
331
  "info": info,
329
332
  "quiet": quiet,
@@ -363,36 +366,36 @@ def mredit_cargs(
363
366
  """
364
367
  cargs = []
365
368
  cargs.append("mredit")
366
- if params.get("plane") is not None:
367
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("plane")] for a in c])
368
- if params.get("sphere") is not None:
369
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("sphere")] for a in c])
370
- if params.get("voxel") is not None:
371
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("voxel")] for a in c])
372
- if params.get("scanner"):
369
+ if params.get("plane", None) is not None:
370
+ cargs.extend([a for c in [mredit_plane_cargs(s, execution) for s in params.get("plane", None)] for a in c])
371
+ if params.get("sphere", None) is not None:
372
+ cargs.extend([a for c in [mredit_sphere_cargs(s, execution) for s in params.get("sphere", None)] for a in c])
373
+ if params.get("voxel", None) is not None:
374
+ cargs.extend([a for c in [mredit_voxel_cargs(s, execution) for s in params.get("voxel", None)] for a in c])
375
+ if params.get("scanner", False):
373
376
  cargs.append("-scanner")
374
- if params.get("info"):
377
+ if params.get("info", False):
375
378
  cargs.append("-info")
376
- if params.get("quiet"):
379
+ if params.get("quiet", False):
377
380
  cargs.append("-quiet")
378
- if params.get("debug"):
381
+ if params.get("debug", False):
379
382
  cargs.append("-debug")
380
- if params.get("force"):
383
+ if params.get("force", False):
381
384
  cargs.append("-force")
382
- if params.get("nthreads") is not None:
385
+ if params.get("nthreads", None) is not None:
383
386
  cargs.extend([
384
387
  "-nthreads",
385
- str(params.get("nthreads"))
388
+ str(params.get("nthreads", None))
386
389
  ])
387
- if params.get("config") is not None:
388
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
389
- if params.get("help"):
390
+ if params.get("config", None) is not None:
391
+ cargs.extend([a for c in [mredit_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
392
+ if params.get("help", False):
390
393
  cargs.append("-help")
391
- if params.get("version"):
394
+ if params.get("version", False):
392
395
  cargs.append("-version")
393
- cargs.append(execution.input_file(params.get("input")))
394
- if params.get("output") is not None:
395
- cargs.append(params.get("output"))
396
+ cargs.append(execution.input_file(params.get("input", None)))
397
+ if params.get("output", None) is not None:
398
+ cargs.append(params.get("output", None))
396
399
  return cargs
397
400
 
398
401
 
@@ -411,16 +414,18 @@ def mredit_outputs(
411
414
  """
412
415
  ret = MreditOutputs(
413
416
  root=execution.output_file("."),
414
- output=execution.output_file(params.get("output")) if (params.get("output") is not None) else None,
417
+ output=execution.output_file(params.get("output", None)) if (params.get("output") is not None) else None,
415
418
  )
416
419
  return ret
417
420
 
418
421
 
419
422
  def mredit_execute(
420
423
  params: MreditParameters,
421
- execution: Execution,
424
+ runner: Runner | None = None,
422
425
  ) -> MreditOutputs:
423
426
  """
427
+ mredit
428
+
424
429
  Directly edit the intensities within an image from the command-line.
425
430
 
426
431
  A range of options are provided to enable direct editing of voxel
@@ -439,10 +444,12 @@ def mredit_execute(
439
444
 
440
445
  Args:
441
446
  params: The parameters.
442
- execution: The execution object.
447
+ runner: Command runner.
443
448
  Returns:
444
449
  NamedTuple of outputs (described in `MreditOutputs`).
445
450
  """
451
+ runner = runner or get_global_runner()
452
+ execution = runner.start_execution(MREDIT_METADATA)
446
453
  params = execution.params(params)
447
454
  cargs = mredit_cargs(params, execution)
448
455
  ret = mredit_outputs(params, execution)
@@ -468,6 +475,8 @@ def mredit(
468
475
  runner: Runner | None = None,
469
476
  ) -> MreditOutputs:
470
477
  """
478
+ mredit
479
+
471
480
  Directly edit the intensities within an image from the command-line.
472
481
 
473
482
  A range of options are provided to enable direct editing of voxel
@@ -508,8 +517,6 @@ def mredit(
508
517
  Returns:
509
518
  NamedTuple of outputs (described in `MreditOutputs`).
510
519
  """
511
- runner = runner or get_global_runner()
512
- execution = runner.start_execution(MREDIT_METADATA)
513
520
  params = mredit_params(
514
521
  plane=plane,
515
522
  sphere=sphere,
@@ -526,19 +533,15 @@ def mredit(
526
533
  input_=input_,
527
534
  output=output,
528
535
  )
529
- return mredit_execute(params, execution)
536
+ return mredit_execute(params, runner)
530
537
 
531
538
 
532
539
  __all__ = [
533
540
  "MREDIT_METADATA",
534
- "MreditConfigParameters",
535
541
  "MreditOutputs",
536
- "MreditParameters",
537
- "MreditPlaneParameters",
538
- "MreditSphereParameters",
539
- "MreditVoxelParameters",
540
542
  "mredit",
541
543
  "mredit_config_params",
544
+ "mredit_execute",
542
545
  "mredit_params",
543
546
  "mredit_plane_params",
544
547
  "mredit_sphere_params",