Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Float instead of integers in n_confs #73

Open
j-adamczyk opened this issue Apr 10, 2024 · 1 comment
Open

Float instead of integers in n_confs #73

j-adamczyk opened this issue Apr 10, 2024 · 1 comment

Comments

@j-adamczyk
Copy link

The expression:

n_confs = self.max_conformers * self.pool_multiplier

can result in float number. AllChem.EmbedMultipleConfs will then throw an error, since it expects integers for numConfs and maxAttempts. This should be rounded to the nearest integer.

@sethaxen
Copy link
Collaborator

Nice catch, the relevant line is

n_confs = self.max_conformers * self.pool_multiplier
. In e3fp.conformer.generate, pool_multiplier is documented to be an integer, but we don't enforce this. Probably the better approach is to throw an error if the user provides a non-integer float.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants