PartsGroup
- class compas_fea2.model.PartsGroup[source]
Bases:
_Group[_Part]Base class for parts groups.
- Parameters:
- membersIterable[
compas_fea2.model.Part] The parts belonging to the group.
- membersIterable[
- Attributes:
- partsSet[
compas_fea2.model.Part] The parts belonging to the group.
- model
compas_fea2.model.Model The model where the group is registered, by default None.
- part
compas_fea2.model._Part The part where the group is registered, by default None.
- partsSet[
Inherited Methods
Converts the instance to a string.
Add a single member to the group.
Add multiple members to the group.
Clear all members from the group.
Make an independent copy of the data object.
Create a new group containing members that are in this group but not in another.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Group members into multiple subgroups based on a key function.
Create a new group containing only members that are present in both groups.
Remove a member from the group.
Remove multiple members from the group.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Return the members of the group sorted based on a custom key function.
Create a subgroup based on a given condition.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Return the members of the group as a list.
Create a new group containing all members from this group and another group.
Return a new group containing only unique members.
Validate the data against the object's data schema.