Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8ae6bc5

Browse filesBrowse files
authored
fix: cast to strings before printing
1 parent 888e7fa commit 8ae6bc5
Copy full SHA for 8ae6bc5

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎nipype/utils/profiler.py

Copy file name to clipboardExpand all lines: nipype/utils/profiler.py
+3-3Lines 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(_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(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(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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.