Rosetta  2017.45
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
pyrosetta.util Namespace Reference

Functions

def bind_method
 
def vector1_indices
 

Function Documentation

def pyrosetta.util.bind_method (   class_)
bind_method is to be used as a decorator for binding methods
onto classes which are defined in C++. This functionality is
necessary because C++ objects are not explicitly defined in the python code.
Therefore, dynamically defining is the only option.  Binding methods
should be limited to python specific challenges.

@atom-moyer

Referenced by pyrosetta.method_bindings.pose.__getitem__(), pyrosetta.method_bindings.pose.__iadd__(), pyrosetta.method_bindings.pose.__iter__(), and pyrosetta.method_bindings.pose.__len__().

def pyrosetta.util.vector1_indices (   slice_,
  size 
)
takes an instance of the built-in slice object and a length of a slice-able
object and returns index 1 compatible indices. Think of this as
`slice.vector1_indices(size)` which is analogous to `slice.indices(size)`.

@atom-moyer

Referenced by pyrosetta.method_bindings.pose.__getitem__().