Skip to content

Commit

Permalink
Expand docstring for delete()
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke committed May 2, 2024
1 parent 821fb6d commit 71619e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dagmc/dagnav.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,11 @@ def get_triangle_coordinate_mapping(self, compress=False):
return tri_map, coords

def delete(self):
"""Delete this set from the DAGMC file."""
"""Delete this set from the MOAB database, but doesn't
delete this DAGSet object. The object remains but no
longer refers to anything in the model. In many cases, it may
make sense to delete this DAGSet object immediately following
this operation."""
self.model.used_ids[type(self)].discard(self.id)
self.model.mb.delete_entity(self.handle)
self.handle = None
Expand Down

0 comments on commit 71619e3

Please sign in to comment.