Skip to content

Commit 1fcc082

Browse files
authored
fix: bad string substitution
1 parent 05baec0 commit 1fcc082

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/utils/profiler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(self, pid, freq=0.2, fname=None, cwd=None):
6666
self._freq = freq
6767

6868
# Dump first sample to file
69-
print(",".join(f"v" for v in _first_sample), file=self._logfile)
69+
print(",".join(f"{v}" for v in _first_sample), file=self._logfile)
7070
self._logfile.flush()
7171

7272
# Start thread
@@ -84,7 +84,7 @@ def stop(self):
8484
self._event.set()
8585
self.join()
8686
# Dump last sample to file
87-
print(",".join(f"v" for v in self._sample()), file=self._logfile)
87+
print(",".join(f"{v}" for v in self._sample()), file=self._logfile)
8888
self._logfile.flush()
8989
self._logfile.close()
9090

@@ -145,7 +145,7 @@ def run(self):
145145
wait_til = start_time
146146
while not self._event.is_set():
147147
# Dump sample to file
148-
print(",".join(f"v" for v in self._sample()), file=self._logfile)
148+
print(",".join(f"{v}" for v in self._sample()), file=self._logfile)
149149
self._logfile.flush()
150150
wait_til += self._freq
151151
self._event.wait(max(0, wait_til - time()))

0 commit comments

Comments
 (0)