Skip to content

Commit

Permalink
Rename compile_to_hardware
Browse files Browse the repository at this point in the history
I propose to rename qgl2_compile_to_hardware to compile_to_hardware
  • Loading branch information
Diego Ristè committed Jun 8, 2017
1 parent a199816 commit 8c7c3f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/python/pyqgl2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,16 +330,16 @@ def compile_function(filename,
return qgl1_main


def qgl2_compile_to_hardware(seqs, filename, suffix=''):
def compile_to_hardware(seqs, filename, suffix=''):
'''
Custom compile_to_hardware for QGL2
'''

from QGL.Compiler import compile_to_hardware
from QGL.Compiler import compile_to_hardware as qgl1_compile_to_hardware
from QGL.Scheduler import schedule

scheduled_seq = schedule(seqs)
return compile_to_hardware(scheduled_seq, filename, suffix)
return qgl1_compile_to_hardware([scheduled_seq], filename, suffix)

######
# Run the main with
Expand Down Expand Up @@ -397,7 +397,7 @@ def qgl2_compile_to_hardware(seqs, filename, suffix=''):
set_log_level()

# Now we have a QGL1 list of sequences we can act on
fileNames = qgl2_compile_to_hardware(sequences, opts.prefix,
fileNames = compile_to_hardware(sequences, opts.prefix,
opts.suffix)
print(fileNames)
if opts.showplot:
Expand Down

0 comments on commit 8c7c3f9

Please sign in to comment.