PartsGroup.intersection

PartsGroup.intersection(other)[source]

Create a new group containing only members that are present in both groups.

Parameters:
otherG

Another group to find common members with. Must be of the same group type.

Returns:
G

A new group containing only members found in both groups.