Skip to content

Commit

Permalink
Suppress domain warning in tarski
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriWeiss committed Oct 25, 2023
1 parent 4454700 commit 641392b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion up_ac/AC_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from up_ac.utils.ac_feedback import qaul_feedback, runtime_feedback
from up_ac.utils.patches import patch_pcs
from tarski.io import PDDLReader as treader
import logging

from ConfigSpace.read_and_write import pcs

Expand Down Expand Up @@ -41,8 +42,9 @@ def compute_instance_features(self, domain, instance):
list: Computed instance features.
"""
logging.getLogger().setLevel(logging.ERROR)
try:
# TODO catch duplicte errors in tarski
# TODO catch duplicate errors in tarski
features = []
self.treader.parse_domain(domain)
problem = self.treader.parse_instance(instance)
Expand Down
1 change: 1 addition & 0 deletions up_ac/examples/enhsp_Smac_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
instance.rsplit('/', 1)[0] + '/domain.pddl',
instance)


up.shortcuts.get_environment().credits_stream = None


Expand Down

0 comments on commit 641392b

Please sign in to comment.