Skip to content

Conformer generation isn't deterministic #94

Description

@sevyharris

When you create a new AutoTST species, it gets the geometry from RDKit's Embed functionality without using a random seed, so you get a different result each time.

Here are 3 different versions of butane AutoTST gives you if create the species 3 times.

import ase
import ase.visualize
import autotst.species

my_ase_atoms = []
for i in range(3):
    my_species = autotst.species.Species(smiles=['CCCC'])
    my_ase_atoms.append(my_species.conformers['CCCC'][0].get_ase_mol())
    
ase.visualize.view(my_ase_atoms[0] + my_ase_atoms[1] + my_ase_atoms[2], viewer='x3d')

Image

This is a problem if you have a workflow that has to rebuild AutoTST objects every time it restarts. We should set the random seed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions