From 6f2cc6f13c310fda235c94801180d0bdbc7ee6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan-Cosmin=20Ciocan?= <57830279+cosminc98@users.noreply.github.com> Date: Mon, 18 Dec 2023 16:30:25 +0100 Subject: [PATCH] Convert TimeitResult object to human readable string in v1.py --- v1/v1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/v1/v1.py b/v1/v1.py index f40fd97..42188ae 100644 --- a/v1/v1.py +++ b/v1/v1.py @@ -28,6 +28,7 @@ class NVCCPlugin(Magics): stmt = f"subprocess.check_output(['{file_path}.out'], stderr=subprocess.STDOUT)" output = self.shell.run_cell_magic( magic_name="timeit", line="-q -o import subprocess", cell=stmt) + output = str(output) # convert TimeitResult object to human readable string else: output = subprocess.check_output( [file_path + ".out"], stderr=subprocess.STDOUT)