Skip to content

Commit

Permalink
Fix program tester
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanSallami committed Dec 11, 2023
1 parent 0fff320 commit b7bb2cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hybridagi/hybridstores/program_memory/program_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ def check_program_dependencies(self):
if self.is_protected(subprogram):
raise RuntimeError(
f"Error while loading '{self.program_name}'. "+\
f"Trying to call a protected program '{self.subprogram}'. Try to remove it")
f"Trying to call a protected program '{subprogram}'. Try to remove it")
if not self.program_memory.exists(subprogram):
raise RuntimeError(
f"Error while loading '{self.program_name}': "+\
f"The sub-program '{self.subprogram}' does not exist. "+\
f"The sub-program '{subprogram}' does not exist. "+\
"Please correct your program")

def verify_programs(
Expand Down
6 changes: 6 additions & 0 deletions hybridagi/hybridstores/trace_memory/trace_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ def __init__(
verbose = verbose,
)

def update_objective(
self,
new_objective: str):
"""Method to update the objective"""
self.objective = new_objective


0 comments on commit b7bb2cf

Please sign in to comment.