OEReceptorGetProteinConstraints

OEReceptorGetProteinConstraints(rec: Union[OEGraphMol,OEMol,OEQMol],
                                enabledOnly: bool = True) -> Iterable[OEProteinConstraint ]

Returns an iterator over the receptor’s protein constraints. If enabledOnly is true then only enabled constraints will be returned.

It is only valid to call this function if receptor is a valid receptor (i.e., OEIsReceptor returns true).