We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d627ba commit 0752bcaCopy full SHA for 0752bca
pydra/tasks/fsl/preprocess/susan.py
@@ -15,16 +15,7 @@ def format_usans(field: ty.Sequence[ty.Tuple[str, float]]) -> str:
15
>>> format_usans([('/path/to/file1', 10.5), ('/path/to/file2', 22.1)])
16
'2 /path/to/file1 10.5 /path/to/file2 22.1'
17
"""
18
- try:
19
- n_usans = len(field)
20
- except TypeError:
21
- n_usans = 0
22
-
23
- if n_usans > 0:
24
- usan_bt = " ".join([f"{usan} {bt}" for usan, bt in field])
25
- return f"{n_usans} {usan_bt}"
26
- else:
27
- return f"{n_usans}"
+ return " ".join([f"{len(field)}"] + [f"{usan} {bt}" for usan, bt in field])
28
29
30
input_fields = [
0 commit comments