Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomino committed Oct 3, 2023
1 parent b633c16 commit 5993508
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/process_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_objective(lp: LinearProg, sample: dict) -> float:
)


def get_results(sampleset, prob):
def get_results(sampleset: SampleSet, prob):
"""Check samples one by one, and computes it statistics.
Statistics includes energy (as provided by D'Wave), objective function
Expand All @@ -48,7 +48,7 @@ def get_results(sampleset, prob):
return sorted(dict_list, key=lambda d: d["energy"])


def store_result(input_name: str, file_name: str, sampleset):
def store_result(input_name: str, file_name: str, sampleset: SampleSet):
"""Save samples to the file
:param input_name: name of the input
Expand Down Expand Up @@ -81,7 +81,7 @@ def load_results(file_name: str):


def analyze_constraints(
lp: LinearProg, sample: dict[str, int]
lp, sample: dict[str, int]
):
"""check which constraints were satisfied
Expand Down

0 comments on commit 5993508

Please sign in to comment.