AtomsTopologyMixin¶
-
class
sknano.core.atoms.
AtomsTopologyMixin
[source] [edit on github][source]¶ Bases:
object
Mixin
Atoms
topology class.Attributes
all_angles
Angles
.all_bonds
Bonds
.all_dihedrals
Dihedrals
.all_impropers
Impropers
.angles
Angles
.angles_in_degrees
bool
setting for returning angles in degrees.bonds
Bonds
.dihedrals
Dihedrals
.impropers
Impropers
.topology_stats
dict
of topology statistics.Methods
get_angle
(*triplet[, check_operands, degrees])Compute bond angles. get_angles
([neighbors_only, unique, ids_only])Return list of bond angles. get_bond
(*pair[, check_operands, degrees])Compute bond lengths. get_bonds
([neighbors_only, unique, ids_only])Return list of bonds. get_dihedral
(*ids[, check_operands, degrees])Compute dihedral angles. get_dihedrals
([neighbors_only, unique, ids_only])Return list of Dihedral
sget_improper
(*ids[, check_operands, degrees])Compute improper angles. get_impropers
([neighbors_only, unique, ids_only])Return list of Impropers
supdate_attrs
([topology])Update AtomsTopologyMixin
class attributes.Attributes Summary
all_angles
Angles
.all_bonds
Bonds
.all_dihedrals
Dihedrals
.all_impropers
Impropers
.angles
Angles
.angles_in_degrees
bool
setting for returning angles in degrees.bonds
Bonds
.dihedrals
Dihedrals
.impropers
Impropers
.topology_stats
dict
of topology statistics.Methods Summary
get_angle
(*triplet[, check_operands, degrees])Compute bond angles. get_angles
([neighbors_only, unique, ids_only])Return list of bond angles. get_bond
(*pair[, check_operands, degrees])Compute bond lengths. get_bonds
([neighbors_only, unique, ids_only])Return list of bonds. get_dihedral
(*ids[, check_operands, degrees])Compute dihedral angles. get_dihedrals
([neighbors_only, unique, ids_only])Return list of Dihedral
sget_improper
(*ids[, check_operands, degrees])Compute improper angles. get_impropers
([neighbors_only, unique, ids_only])Return list of Impropers
supdate_attrs
([topology])Update AtomsTopologyMixin
class attributes.Attributes Documentation
Methods Documentation
-
get_angle
(*triplet, check_operands=True, degrees=False)[source] [edit on github][source]¶ Compute bond angles.
Parameters: Returns: Return type: Raises: TypeError
– iftriplet
is not a list ofid
sValueError
– if len(triplet) != 3.
-
get_angles
(neighbors_only=False, unique=False, ids_only=False)[source] [edit on github][source]¶ Return list of bond angles.
-
get_bond
(*pair, check_operands=True, degrees=False)[source] [edit on github][source]¶ Compute bond lengths.
Parameters: Returns: Return type: Raises: TypeError
– ifpair
is not a list ofid
sValueError
– if len(pair) != 2.
-
get_bonds
(neighbors_only=False, unique=False, ids_only=False)[source] [edit on github][source]¶ Return list of bonds.
-
get_dihedral
(*ids, check_operands=True, degrees=False)[source] [edit on github][source]¶ Compute dihedral angles.
-
get_dihedrals
(neighbors_only=False, unique=False, ids_only=False)[source] [edit on github][source]¶ Return list of
Dihedral
s
-
get_improper
(*ids, check_operands=True, degrees=False)[source] [edit on github][source]¶ Compute improper angles.
-
get_impropers
(neighbors_only=False, unique=False, ids_only=False)[source] [edit on github][source]¶ Return list of
Impropers
s
-
update_attrs
(topology=True, **kwargs)[source] [edit on github][source]¶ Update
AtomsTopologyMixin
class attributes.
-