Random Atom Factory¶
-
class
RandomAtomFactory
(atoms, num_atoms, required_atoms=(), random_seed=None)[source]¶ Bases:
vabene.atom.factories.atom_factory.AtomFactory
Creates a random collection of atoms.
Parameters: - atoms (
tuple
ofAtom
) – The atoms, which are randomly selected, with replacement, in eachget_atoms()
call. - num_atoms (
int
) – The number of atoms which should be yielded in eachget_atoms()
call. - required_atoms (
tuple
ofAtom
, optional) – Atoms, which must be yielded in eachget_atoms()
call. - random_seed (
int
, optional) – The random seed to use.
Methods
get_atoms
()Yield the atoms of a molecule. - atoms (