niwrap-mrtrix 0.6.3__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.3.dist-info/METADATA +0 -8
  121. niwrap_mrtrix-0.6.3.dist-info/RECORD +0 -119
  122. niwrap_mrtrix-0.6.3.dist-info/WHEEL +0 -4
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  TSFDIVIDE_METADATA = Metadata(
9
- id="73b4285cd16d7ecd5b79ccc7ed4dd1e67b62377d.boutiques",
9
+ id="6ee933964de2557d8a0e6e587b41c3c00d890366.boutiques",
10
10
  name="tsfdivide",
11
11
  package="mrtrix",
12
12
  container_image_tag="mrtrix3/mrtrix3:3.0.4",
@@ -14,14 +14,33 @@ TSFDIVIDE_METADATA = Metadata(
14
14
 
15
15
 
16
16
  TsfdivideConfigParameters = typing.TypedDict('TsfdivideConfigParameters', {
17
- "__STYXTYPE__": typing.Literal["config"],
17
+ "@type": typing.NotRequired[typing.Literal["config"]],
18
+ "key": str,
19
+ "value": str,
20
+ })
21
+ TsfdivideConfigParametersTagged = typing.TypedDict('TsfdivideConfigParametersTagged', {
22
+ "@type": typing.Literal["config"],
18
23
  "key": str,
19
24
  "value": str,
20
25
  })
21
26
 
22
27
 
23
28
  TsfdivideParameters = typing.TypedDict('TsfdivideParameters', {
24
- "__STYXTYPE__": typing.Literal["tsfdivide"],
29
+ "@type": typing.NotRequired[typing.Literal["mrtrix/tsfdivide"]],
30
+ "info": bool,
31
+ "quiet": bool,
32
+ "debug": bool,
33
+ "force": bool,
34
+ "nthreads": typing.NotRequired[int | None],
35
+ "config": typing.NotRequired[list[TsfdivideConfigParameters] | None],
36
+ "help": bool,
37
+ "version": bool,
38
+ "input1": InputPathType,
39
+ "input2": InputPathType,
40
+ "output": str,
41
+ })
42
+ TsfdivideParametersTagged = typing.TypedDict('TsfdivideParametersTagged', {
43
+ "@type": typing.Literal["mrtrix/tsfdivide"],
25
44
  "info": bool,
26
45
  "quiet": bool,
27
46
  "debug": bool,
@@ -34,45 +53,12 @@ TsfdivideParameters = typing.TypedDict('TsfdivideParameters', {
34
53
  "input2": InputPathType,
35
54
  "output": str,
36
55
  })
37
-
38
-
39
- def dyn_cargs(
40
- t: str,
41
- ) -> typing.Any:
42
- """
43
- Get build cargs function by command type.
44
-
45
- Args:
46
- t: Command type.
47
- Returns:
48
- Build cargs function.
49
- """
50
- return {
51
- "tsfdivide": tsfdivide_cargs,
52
- "config": tsfdivide_config_cargs,
53
- }.get(t)
54
-
55
-
56
- def dyn_outputs(
57
- t: str,
58
- ) -> typing.Any:
59
- """
60
- Get build outputs function by command type.
61
-
62
- Args:
63
- t: Command type.
64
- Returns:
65
- Build outputs function.
66
- """
67
- return {
68
- "tsfdivide": tsfdivide_outputs,
69
- }.get(t)
70
56
 
71
57
 
72
58
  def tsfdivide_config_params(
73
59
  key: str,
74
60
  value: str,
75
- ) -> TsfdivideConfigParameters:
61
+ ) -> TsfdivideConfigParametersTagged:
76
62
  """
77
63
  Build parameters.
78
64
 
@@ -83,7 +69,7 @@ def tsfdivide_config_params(
83
69
  Parameter dictionary
84
70
  """
85
71
  params = {
86
- "__STYXTYPE__": "config",
72
+ "@type": "config",
87
73
  "key": key,
88
74
  "value": value,
89
75
  }
@@ -105,14 +91,14 @@ def tsfdivide_config_cargs(
105
91
  """
106
92
  cargs = []
107
93
  cargs.append("-config")
108
- cargs.append(params.get("key"))
109
- cargs.append(params.get("value"))
94
+ cargs.append(params.get("key", None))
95
+ cargs.append(params.get("value", None))
110
96
  return cargs
111
97
 
112
98
 
113
99
  class TsfdivideOutputs(typing.NamedTuple):
114
100
  """
115
- Output object returned when calling `tsfdivide(...)`.
101
+ Output object returned when calling `TsfdivideParameters(...)`.
116
102
  """
117
103
  root: OutputPathType
118
104
  """Output root folder. This is the root folder for all outputs."""
@@ -132,7 +118,7 @@ def tsfdivide_params(
132
118
  config: list[TsfdivideConfigParameters] | None = None,
133
119
  help_: bool = False,
134
120
  version: bool = False,
135
- ) -> TsfdivideParameters:
121
+ ) -> TsfdivideParametersTagged:
136
122
  """
137
123
  Build parameters.
138
124
 
@@ -156,7 +142,7 @@ def tsfdivide_params(
156
142
  Parameter dictionary
157
143
  """
158
144
  params = {
159
- "__STYXTYPE__": "tsfdivide",
145
+ "@type": "mrtrix/tsfdivide",
160
146
  "info": info,
161
147
  "quiet": quiet,
162
148
  "debug": debug,
@@ -189,28 +175,28 @@ def tsfdivide_cargs(
189
175
  """
190
176
  cargs = []
191
177
  cargs.append("tsfdivide")
192
- if params.get("info"):
178
+ if params.get("info", False):
193
179
  cargs.append("-info")
194
- if params.get("quiet"):
180
+ if params.get("quiet", False):
195
181
  cargs.append("-quiet")
196
- if params.get("debug"):
182
+ if params.get("debug", False):
197
183
  cargs.append("-debug")
198
- if params.get("force"):
184
+ if params.get("force", False):
199
185
  cargs.append("-force")
200
- if params.get("nthreads") is not None:
186
+ if params.get("nthreads", None) is not None:
201
187
  cargs.extend([
202
188
  "-nthreads",
203
- str(params.get("nthreads"))
189
+ str(params.get("nthreads", None))
204
190
  ])
205
- if params.get("config") is not None:
206
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
207
- if params.get("help"):
191
+ if params.get("config", None) is not None:
192
+ cargs.extend([a for c in [tsfdivide_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
193
+ if params.get("help", False):
208
194
  cargs.append("-help")
209
- if params.get("version"):
195
+ if params.get("version", False):
210
196
  cargs.append("-version")
211
- cargs.append(execution.input_file(params.get("input1")))
212
- cargs.append(execution.input_file(params.get("input2")))
213
- cargs.append(params.get("output"))
197
+ cargs.append(execution.input_file(params.get("input1", None)))
198
+ cargs.append(execution.input_file(params.get("input2", None)))
199
+ cargs.append(params.get("output", None))
214
200
  return cargs
215
201
 
216
202
 
@@ -229,16 +215,18 @@ def tsfdivide_outputs(
229
215
  """
230
216
  ret = TsfdivideOutputs(
231
217
  root=execution.output_file("."),
232
- output=execution.output_file(params.get("output")),
218
+ output=execution.output_file(params.get("output", None)),
233
219
  )
234
220
  return ret
235
221
 
236
222
 
237
223
  def tsfdivide_execute(
238
224
  params: TsfdivideParameters,
239
- execution: Execution,
225
+ runner: Runner | None = None,
240
226
  ) -> TsfdivideOutputs:
241
227
  """
228
+ tsfdivide
229
+
242
230
  Divide corresponding values in track scalar files.
243
231
 
244
232
 
@@ -253,10 +241,12 @@ def tsfdivide_execute(
253
241
 
254
242
  Args:
255
243
  params: The parameters.
256
- execution: The execution object.
244
+ runner: Command runner.
257
245
  Returns:
258
246
  NamedTuple of outputs (described in `TsfdivideOutputs`).
259
247
  """
248
+ runner = runner or get_global_runner()
249
+ execution = runner.start_execution(TSFDIVIDE_METADATA)
260
250
  params = execution.params(params)
261
251
  cargs = tsfdivide_cargs(params, execution)
262
252
  ret = tsfdivide_outputs(params, execution)
@@ -279,6 +269,8 @@ def tsfdivide(
279
269
  runner: Runner | None = None,
280
270
  ) -> TsfdivideOutputs:
281
271
  """
272
+ tsfdivide
273
+
282
274
  Divide corresponding values in track scalar files.
283
275
 
284
276
 
@@ -311,8 +303,6 @@ def tsfdivide(
311
303
  Returns:
312
304
  NamedTuple of outputs (described in `TsfdivideOutputs`).
313
305
  """
314
- runner = runner or get_global_runner()
315
- execution = runner.start_execution(TSFDIVIDE_METADATA)
316
306
  params = tsfdivide_params(
317
307
  info=info,
318
308
  quiet=quiet,
@@ -326,15 +316,14 @@ def tsfdivide(
326
316
  input2=input2,
327
317
  output=output,
328
318
  )
329
- return tsfdivide_execute(params, execution)
319
+ return tsfdivide_execute(params, runner)
330
320
 
331
321
 
332
322
  __all__ = [
333
323
  "TSFDIVIDE_METADATA",
334
- "TsfdivideConfigParameters",
335
324
  "TsfdivideOutputs",
336
- "TsfdivideParameters",
337
325
  "tsfdivide",
338
326
  "tsfdivide_config_params",
327
+ "tsfdivide_execute",
339
328
  "tsfdivide_params",
340
329
  ]
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  TSFINFO_METADATA = Metadata(
9
- id="45e3911b111372c34cdd626a6ab7dceee95afdc9.boutiques",
9
+ id="84b05c3ebf8c8a54423a79c4d7fe8735d30e4fff.boutiques",
10
10
  name="tsfinfo",
11
11
  package="mrtrix",
12
12
  container_image_tag="mrtrix3/mrtrix3:3.0.4",
@@ -14,14 +14,33 @@ TSFINFO_METADATA = Metadata(
14
14
 
15
15
 
16
16
  TsfinfoConfigParameters = typing.TypedDict('TsfinfoConfigParameters', {
17
- "__STYXTYPE__": typing.Literal["config"],
17
+ "@type": typing.NotRequired[typing.Literal["config"]],
18
+ "key": str,
19
+ "value": str,
20
+ })
21
+ TsfinfoConfigParametersTagged = typing.TypedDict('TsfinfoConfigParametersTagged', {
22
+ "@type": typing.Literal["config"],
18
23
  "key": str,
19
24
  "value": str,
20
25
  })
21
26
 
22
27
 
23
28
  TsfinfoParameters = typing.TypedDict('TsfinfoParameters', {
24
- "__STYXTYPE__": typing.Literal["tsfinfo"],
29
+ "@type": typing.NotRequired[typing.Literal["mrtrix/tsfinfo"]],
30
+ "count": bool,
31
+ "ascii": typing.NotRequired[str | None],
32
+ "info": bool,
33
+ "quiet": bool,
34
+ "debug": bool,
35
+ "force": bool,
36
+ "nthreads": typing.NotRequired[int | None],
37
+ "config": typing.NotRequired[list[TsfinfoConfigParameters] | None],
38
+ "help": bool,
39
+ "version": bool,
40
+ "tracks": list[InputPathType],
41
+ })
42
+ TsfinfoParametersTagged = typing.TypedDict('TsfinfoParametersTagged', {
43
+ "@type": typing.Literal["mrtrix/tsfinfo"],
25
44
  "count": bool,
26
45
  "ascii": typing.NotRequired[str | None],
27
46
  "info": bool,
@@ -34,44 +53,12 @@ TsfinfoParameters = typing.TypedDict('TsfinfoParameters', {
34
53
  "version": bool,
35
54
  "tracks": list[InputPathType],
36
55
  })
37
-
38
-
39
- def dyn_cargs(
40
- t: str,
41
- ) -> typing.Any:
42
- """
43
- Get build cargs function by command type.
44
-
45
- Args:
46
- t: Command type.
47
- Returns:
48
- Build cargs function.
49
- """
50
- return {
51
- "tsfinfo": tsfinfo_cargs,
52
- "config": tsfinfo_config_cargs,
53
- }.get(t)
54
-
55
-
56
- def dyn_outputs(
57
- t: str,
58
- ) -> typing.Any:
59
- """
60
- Get build outputs function by command type.
61
-
62
- Args:
63
- t: Command type.
64
- Returns:
65
- Build outputs function.
66
- """
67
- return {
68
- }.get(t)
69
56
 
70
57
 
71
58
  def tsfinfo_config_params(
72
59
  key: str,
73
60
  value: str,
74
- ) -> TsfinfoConfigParameters:
61
+ ) -> TsfinfoConfigParametersTagged:
75
62
  """
76
63
  Build parameters.
77
64
 
@@ -82,7 +69,7 @@ def tsfinfo_config_params(
82
69
  Parameter dictionary
83
70
  """
84
71
  params = {
85
- "__STYXTYPE__": "config",
72
+ "@type": "config",
86
73
  "key": key,
87
74
  "value": value,
88
75
  }
@@ -104,14 +91,14 @@ def tsfinfo_config_cargs(
104
91
  """
105
92
  cargs = []
106
93
  cargs.append("-config")
107
- cargs.append(params.get("key"))
108
- cargs.append(params.get("value"))
94
+ cargs.append(params.get("key", None))
95
+ cargs.append(params.get("value", None))
109
96
  return cargs
110
97
 
111
98
 
112
99
  class TsfinfoOutputs(typing.NamedTuple):
113
100
  """
114
- Output object returned when calling `tsfinfo(...)`.
101
+ Output object returned when calling `TsfinfoParameters(...)`.
115
102
  """
116
103
  root: OutputPathType
117
104
  """Output root folder. This is the root folder for all outputs."""
@@ -129,7 +116,7 @@ def tsfinfo_params(
129
116
  config: list[TsfinfoConfigParameters] | None = None,
130
117
  help_: bool = False,
131
118
  version: bool = False,
132
- ) -> TsfinfoParameters:
119
+ ) -> TsfinfoParametersTagged:
133
120
  """
134
121
  Build parameters.
135
122
 
@@ -154,7 +141,7 @@ def tsfinfo_params(
154
141
  Parameter dictionary
155
142
  """
156
143
  params = {
157
- "__STYXTYPE__": "tsfinfo",
144
+ "@type": "mrtrix/tsfinfo",
158
145
  "count": count,
159
146
  "info": info,
160
147
  "quiet": quiet,
@@ -188,33 +175,33 @@ def tsfinfo_cargs(
188
175
  """
189
176
  cargs = []
190
177
  cargs.append("tsfinfo")
191
- if params.get("count"):
178
+ if params.get("count", False):
192
179
  cargs.append("-count")
193
- if params.get("ascii") is not None:
180
+ if params.get("ascii", None) is not None:
194
181
  cargs.extend([
195
182
  "-ascii",
196
- params.get("ascii")
183
+ params.get("ascii", None)
197
184
  ])
198
- if params.get("info"):
185
+ if params.get("info", False):
199
186
  cargs.append("-info")
200
- if params.get("quiet"):
187
+ if params.get("quiet", False):
201
188
  cargs.append("-quiet")
202
- if params.get("debug"):
189
+ if params.get("debug", False):
203
190
  cargs.append("-debug")
204
- if params.get("force"):
191
+ if params.get("force", False):
205
192
  cargs.append("-force")
206
- if params.get("nthreads") is not None:
193
+ if params.get("nthreads", None) is not None:
207
194
  cargs.extend([
208
195
  "-nthreads",
209
- str(params.get("nthreads"))
196
+ str(params.get("nthreads", None))
210
197
  ])
211
- if params.get("config") is not None:
212
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
213
- if params.get("help"):
198
+ if params.get("config", None) is not None:
199
+ cargs.extend([a for c in [tsfinfo_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
200
+ if params.get("help", False):
214
201
  cargs.append("-help")
215
- if params.get("version"):
202
+ if params.get("version", False):
216
203
  cargs.append("-version")
217
- cargs.extend([execution.input_file(f) for f in params.get("tracks")])
204
+ cargs.extend([execution.input_file(f) for f in params.get("tracks", None)])
218
205
  return cargs
219
206
 
220
207
 
@@ -239,9 +226,11 @@ def tsfinfo_outputs(
239
226
 
240
227
  def tsfinfo_execute(
241
228
  params: TsfinfoParameters,
242
- execution: Execution,
229
+ runner: Runner | None = None,
243
230
  ) -> TsfinfoOutputs:
244
231
  """
232
+ tsfinfo
233
+
245
234
  Print out information about a track scalar file.
246
235
 
247
236
 
@@ -256,10 +245,12 @@ def tsfinfo_execute(
256
245
 
257
246
  Args:
258
247
  params: The parameters.
259
- execution: The execution object.
248
+ runner: Command runner.
260
249
  Returns:
261
250
  NamedTuple of outputs (described in `TsfinfoOutputs`).
262
251
  """
252
+ runner = runner or get_global_runner()
253
+ execution = runner.start_execution(TSFINFO_METADATA)
263
254
  params = execution.params(params)
264
255
  cargs = tsfinfo_cargs(params, execution)
265
256
  ret = tsfinfo_outputs(params, execution)
@@ -282,6 +273,8 @@ def tsfinfo(
282
273
  runner: Runner | None = None,
283
274
  ) -> TsfinfoOutputs:
284
275
  """
276
+ tsfinfo
277
+
285
278
  Print out information about a track scalar file.
286
279
 
287
280
 
@@ -315,8 +308,6 @@ def tsfinfo(
315
308
  Returns:
316
309
  NamedTuple of outputs (described in `TsfinfoOutputs`).
317
310
  """
318
- runner = runner or get_global_runner()
319
- execution = runner.start_execution(TSFINFO_METADATA)
320
311
  params = tsfinfo_params(
321
312
  count=count,
322
313
  ascii_=ascii_,
@@ -330,15 +321,14 @@ def tsfinfo(
330
321
  version=version,
331
322
  tracks=tracks,
332
323
  )
333
- return tsfinfo_execute(params, execution)
324
+ return tsfinfo_execute(params, runner)
334
325
 
335
326
 
336
327
  __all__ = [
337
328
  "TSFINFO_METADATA",
338
- "TsfinfoConfigParameters",
339
329
  "TsfinfoOutputs",
340
- "TsfinfoParameters",
341
330
  "tsfinfo",
342
331
  "tsfinfo_config_params",
332
+ "tsfinfo_execute",
343
333
  "tsfinfo_params",
344
334
  ]