Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mupt/mupr/primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,6 @@ def set_connectivity_from_topology(


# Resolution shift methods
## TODO: make out-of-place versions of these methods (via optional_in_place for a start)?
def check_self_consistent(self) -> None:
'''
Check sufficient conditions for whether the children of this Primitive, their
Expand Down Expand Up @@ -914,6 +913,8 @@ def contract(
# if not target_labels.issubset(self.unique_child_labels):
# raise ValueError('Child Primitives labels chosen for contraction are not a proper subset of the children actually present')

# TODO: add out-of-place version of contract (once contract() is implemented)

@property
def expandable_children(self) -> set[PrimitiveHandle]:
'''Set of all children (referenced by handle) which are capable of being expanded, ie. replaced with the hierarchy of their children'''
Expand Down