From 292e35cacbf590e10732f3460a6f97ae0d66f32c Mon Sep 17 00:00:00 2001
From: mathiasg <mathiasg@stanford.edu>
Date: Tue, 17 Dec 2024 10:50:13 -0500
Subject: [PATCH] FIX: Missed savetxt bstring

---
 nipype/algorithms/confounds.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nipype/algorithms/confounds.py b/nipype/algorithms/confounds.py
index 5e3588f4fc..d2e6168ea7 100644
--- a/nipype/algorithms/confounds.py
+++ b/nipype/algorithms/confounds.py
@@ -208,7 +208,7 @@ def _run_interface(self, runtime):
 
         if self.inputs.save_nstd:
             out_file = self._gen_fname("dvars_nstd", ext="tsv")
-            np.savetxt(out_file, dvars[1], fmt=b"%0.6f")
+            np.savetxt(out_file, dvars[1], fmt="%0.6f")
             self._results["out_nstd"] = out_file
 
             if self.inputs.save_plot: