Commits

Andrew Dalke committed 8433293

Forced explicit hydrogens to be [#1]

Comments (0)

Files changed (1)

 # Initialize to the ones which need special treatment
 # RDKit supports b, c, n, o, p, s, se, and te.
 # Daylight and OpenSMILES don't 'te' but do support 'as'
+# I don't want 'H'-is-hydrogen to get confused with 'H'-as-has-hydrogens.
 # For better portability, I use the '#' notation for all of them.
-for eleno in (5, 6, 7, 8, 15, 16, 33, 34, 52):
+for eleno in (1, 5, 6, 7, 8, 15, 16, 33, 34, 52):
     _atom_smarts_no_aromaticity[eleno] = "#" + str(eleno)
 assert _atom_smarts_no_aromaticity[6] == "#6"
 assert _atom_smarts_no_aromaticity[2] == "He"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.