Skip to content

Commit 391d2be

Browse files
STY: Apply ruff/Pyflakes rule F541
F541 f-string without any placeholders
1 parent 2af042f commit 391d2be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nipype/interfaces/cat12/preprocess.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def _list_outputs(self):
575575
]
576576

577577
outputs["report"] = fname_presuffix(
578-
f, prefix=os.path.join("report", f"cat_"), suffix=".xml", use_ext=False
578+
f, prefix=os.path.join("report", "cat_"), suffix=".xml", use_ext=False
579579
)
580580

581581
outputs["label_files"] = [

nipype/utils/provenance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _get_sorteddict(object, dictwithhash=False):
120120
else:
121121
out = hash
122122
elif isinstance(object, float):
123-
out = f"%.10f"
123+
out = f"{object:.10f}"
124124
else:
125125
out = object
126126
return out

0 commit comments

Comments
 (0)