Navigation Menu

Skip to content

Commit

Permalink
Create atoms using atomic number rather than symbol.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Feb 17, 2017
1 parent 4f384e7 commit 8eb60ae
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1344,7 +1344,7 @@ public static IAtomContainer skeleton(IAtomContainer src) {
IBond[] bonds = new IBond[src.getBondCount()];

for (int i = 0; i < atoms.length; i++) {
atoms[i] = builder.newInstance(IAtom.class, src.getAtom(i).getSymbol());
atoms[i] = builder.newInstance(IAtom.class, src.getAtom(i).getAtomicNumber());
}
for (int i = 0; i < bonds.length; i++) {
IBond bond = src.getBond(i);
Expand Down

0 comments on commit 8eb60ae

Please sign in to comment.