diff --git a/run_sampler_on_scope.py b/run_sampler_on_scope.py index 97e12c2..c56727b 100755 --- a/run_sampler_on_scope.py +++ b/run_sampler_on_scope.py @@ -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,