meld.system.restraints.SelectivelyActiveCollection
- class meld.system.restraints.SelectivelyActiveCollection(restraint_list, num_active)[source]
Bases:
objectA collection of
RestraintGroupthat are selectively activeEach time step the
num_activelowest energy groups will be active.- __init__(restraint_list, num_active)[source]
Initialize a SelectivelyActiveCollection
- Args
restraint_list: list of restraints to add to collection num_active: number active each time step
Note
restraint_listcan contain bothRestraintGroupandSelectableRestraint. AnySelectableRestraintswill be put into a singletonRestraintGroup.
Methods
__init__(restraint_list, num_active)Initialize a SelectivelyActiveCollection
Attributes
Number of groups in collection
Number active in collection
- property groups: List[RestraintGroup]
Number of groups in collection
- property num_active: int
Number active in collection