sknano.core.atoms.Bonds

class sknano.core.atoms.Bonds(bonds=None)[source][source]

Base class for collection of atom Bonds.

Parameters:

bonds : {None, sequence, Bonds}, optional

if not None, then a list of Bond instance objects

Attributes

Nbonds Number of Bonds in Bonds.
angles ndarray of Bond pair angles.
atoms Atoms set in Bonds.
bond_angle_pairs cyclic_pairs of Bonds.
fmtstr
lengths ndarray of lengths.
mean_angle Mean bond angle.
mean_length Mean bond length.
unit_vectors ndarray of unit_vectors.
vectors ndarray of vectors.

Methods

append(item)
clear()
copy()
count(item)
extend(other)
index(item, *args)
insert(i, item)
pop([i])
remove(item)
reverse()
sort([key, reverse])
todict()