Skip to content

Commit 41ed506

Browse files
author
Giacomo De Lazzari
committed
Fix flake8 lints
1 parent de94223 commit 41ed506

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

simwave/kernel/backend/compiler.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import os, subprocess
1+
import os
2+
import subprocess
23
from hashlib import sha1
34

45

@@ -200,10 +201,11 @@ def compile(self, dimension, density, float_precision, operator):
200201
if os.path.exists(object_path):
201202
print("Shared object already compiled in:", object_path)
202203
else:
203-
# create arguments list for `subprocess.run`: pay attention to not providing
204-
# empty arguments, which the compiler will try to interpret as source filenames
205-
# and consequenty fail; moreover split the compilation flags string to separate
206-
# arguments to ensure proper parsing
204+
# create arguments list for `subprocess.run`: pay attention to not
205+
# providing empty arguments, which the compiler will try to
206+
# interpret as source filenames and consequenty fail; moreover
207+
# split the compilation flags string to separate arguments to
208+
# ensure proper parsing
207209
args = [self.cc, program_path]
208210
args += [flag.strip() for flag in self.cflags.split(' ') if flag.strip() != '']
209211
if float_precision.strip() != '':

0 commit comments

Comments
 (0)