Skip to content

Commit

Permalink
add function to remove projection atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaminsk authored Dec 2, 2024
1 parent 1ee8c90 commit a254167
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libpyclingo/clingo/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,16 @@ def replace_project(self, atoms: Sequence[Union[Symbol, int]]) -> None:
"""
self._update_project(atoms, append=False)

def remove_project(self) -> None:
"""
Remove all projection atoms.
See Also
--------
Control.add_project
"""
self._update_project([], append=False)

def assign_external(
self, external: Union[Symbol, int], truth: Optional[bool]
) -> None:
Expand Down

0 comments on commit a254167

Please sign in to comment.