Skip to content

Commit

Permalink
add filter argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mariostieriansys committed Dec 12, 2024
1 parent a66c80a commit 5a585e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ansys/pyensight/core/dvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,14 +731,16 @@ def end_updates(self):
client["update_started"] = False
self._update_num += 1

def delete_item_on_clients(self, update_num):
def delete_item_on_clients(self, update_num, filter=""):
"""Delete an item from all the running clients.
Parameters
----------
update_num: int
the update number to remove from the database
filter: str
the filter to apply when deleting the update number
"""
for c in range(self._client_count):
client = self._clients[c]
_ = self.delete_item(client["client_id"], update_num, client["rank"])
_ = self.delete_item(client["client_id"], update_num, client["rank"], filter)

0 comments on commit 5a585e9

Please sign in to comment.