Browse Source

fix solver_args

master
Tom 5 years ago
parent
commit
3bc8fb500f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      run_sampler_on_scope.py

+ 2
- 2
run_sampler_on_scope.py View File

@ -73,7 +73,7 @@ def __get_solver_input_query(db, solver):
solver_input_query = queries.WMIS_solver_input_scope_query(db)
solver_input_query.query(scope, solver_graph_id)
def __run_on_scope(solver_input_query, result_collection, base_solver, solver_args=None):
def __run_on_scope(solver_input_query, result_collection, base_solver, solver_args={}):
run = int(input("save as run (numbered): "))
for solver_input in tqdm(solver_input_query):
@ -83,7 +83,7 @@ def __run_on_scope(solver_input_query, result_collection, base_solver, solver_ar
solver = FixedEmbeddingComposite(base_solver, embedding)
res = solver.sample_qubo(qubo, **args)
res = solver.sample_qubo(qubo, **solver_args)
script.save_result(result_collection,
res,


Loading…
Cancel
Save