Random Atom Factory¶
-
class
RandomAtomFactory(atoms, num_atoms, required_atoms=(), random_seed=None)[source]¶ Bases:
vabene.atom.factories.atom_factory.AtomFactoryCreates a random collection of atoms.
Parameters: - atoms (
tupleofAtom) – 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 (
tupleofAtom, optional) – Atoms, which must be yielded in eachget_atoms()call. - random_seed (
int, optional) – The random seed to use.
Methods
get_atoms(self)Yield the atoms of a molecule. - atoms (