meld.system.restraints.SelectivelyActiveCollection
- class meld.system.restraints.SelectivelyActiveCollection(restraint_list, num_active)[source]
Bases:
object
A collection of
RestraintGroup
that are selectively activeEach time step the
num_active
lowest 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_list
can contain bothRestraintGroup
andSelectableRestraint
. AnySelectableRestraints
will 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