Skip to content

Commit

Permalink
Assertion info added
Browse files Browse the repository at this point in the history
  • Loading branch information
Demirrr committed Oct 18, 2024
1 parent 63dd83d commit 48f9775
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ontolearn/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,10 @@ def get_most_promising(self) -> RL_State:
-------
node: A node object
"""
assert len(self.items_in_queue.queue) > 0
assert len(self.items_in_queue.queue) > 0 ,("Search tree is empty. "
"\nEnsure that there is at least one "
"owl:Class or"
"owl:ObjectProperty definitions")
_, __, dl_representation = self.items_in_queue.get(timeout=1.0)
# R
node = self.nodes[dl_representation]
Expand Down

0 comments on commit 48f9775

Please sign in to comment.