![]() |
Rosetta
2021.16
|
Functions | |
| def | bind_method |
| def | bind_property |
| def | bind_classmethod |
| def | slice_1base_indicies |
| def pyrosetta.bindings.utility.bind_classmethod | ( | class_ | ) |
bind_classmethod is to be used as a decorator for binding class methods onto classes which are defined in C++. This functionality is necessary because C++ objects are not explicitly defined in the python code. Therefore, monkey patching is the only option. Binding class methods should be limited to python specific challenges.
Referenced by pyrosetta.bindings.homogeneous_transform.from_RT(), and pyrosetta.bindings.homogeneous_transform.is_homog_xform().
| def pyrosetta.bindings.utility.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.
Referenced by pyrosetta.bindings.pose.__getitem__(), pyrosetta.bindings.pose.__iter__(), pyrosetta.bindings.pose.__len__(), pyrosetta.bindings.pose.__pose_getstate__(), pyrosetta.bindings.pose.__scores_accessor(), pyrosetta.bindings.energies._residue_selection_to_1ind(), pyrosetta.bindings.energies.active_total_energies(), pyrosetta.bindings.pose.apply_transform(), pyrosetta.bindings.homogeneous_transform.from_array(), pyrosetta.bindings.pose.get_hbonds(), pyrosetta.bindings.pose.pdb_rsd(), pyrosetta.bindings.energies.residue_onebody_energies_array(), pyrosetta.bindings.energies.residue_pair_energies_array(), pyrosetta.bindings.energies.residue_total_energies_array(), pyrosetta.bindings.pose.rotate(), pyrosetta.bindings.energies.total_energies_array(), and pyrosetta.bindings.pose.translate().
| def pyrosetta.bindings.utility.bind_property | ( | class_ | ) |
bind_property is to be used as a decorator for binding properties 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 properties should be limited to python specific challenges.
Referenced by pyrosetta.bindings.pose.PoseResidueAccessor.__imul__(), pyrosetta.bindings.pose.PoseResidueLabelAccessor.__repr__(), and pyrosetta.bindings.pose.PoseScoreAccessor._repr_pretty_().
| def pyrosetta.bindings.utility.slice_1base_indicies | ( | slice_, | |
| size | |||
| ) |
Convert a slice to 1-based indicies. 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)`.
Referenced by pyrosetta.bindings.pose.PoseResidueAccessor.__getitem__(), pyrosetta.bindings.pose.PoseResidueLabelAccessor.__getitem__(), and test.T190_Bindings_Utility.test_property().
1.8.7