We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RDKit: 2021.09.5
from rdkit import Chem from rdkit.Chem import AllChem smi = "" mol = Chem.MolFromSmiles(smi) assert mol.GetNumAtoms() == 0 fp = AllChem.GetMorganFingerprintAsBitVect(mol, 2, nBits=1024) print(fp.ToList())
I would expect this to produce a list of 1024 zeroes. Instead I get:
IndexError: cannot fit 'int' into an index-sized integer
The text was updated successfully, but these errors were encountered:
The fix is pretty simple, in wrap_ExplicitBV we don't check to see if there are no bits set:
auto pos = sv.dp_bits->find_first(); l[pos] = 1;
I'll make a quick PR
Sorry, something went wrong.
Fixes rdkit#5677
d82b691
da55ed2
Fixes #5677 (#5714)
81721c9
* Fixes #5677 * Response to review * Fix bad push Co-authored-by: Brian Kelley <bkelley@relaytx.com>
No branches or pull requests
RDKit: 2021.09.5
I would expect this to produce a list of 1024 zeroes. Instead I get:
IndexError: cannot fit 'int' into an index-sized integer
The text was updated successfully, but these errors were encountered: