meld.system.builders.build_elastic_network_restraints.add_elastic_network_restraints

meld.system.builders.build_elastic_network_restraints.add_elastic_network_restraints(system, rests, active_fraction=1.0, max_grp_len=64)[source]

For performance reasons, we add restraints in groups of grp_len

Args: system: system object that restraint belongs to rests: list of SelectableRestraint restraints active fraction: fraction of restraints that must remain activated max_grp_len: length of each restraint group.