Skip to content

Commit

Permalink
fix: enable no stereo bond information in StructureCompact class
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwenk committed Jun 15, 2023
1 parent 83c4fce commit 7f44e3d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/casekit/nmr/model/StructureCompact.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,14 @@ public IAtomContainer toAtomContainer() {
== 1);
bond.setIsAromatic(this.bondProperties[i][k][3]
== 1);
bond.setStereo(IBond.Stereo.values()[this.bondProperties[i][k][4]]);
if (this.bondProperties[i][k].length
== 5) {
// with stereo information
bond.setStereo(IBond.Stereo.values()[this.bondProperties[i][k][4]]);
} else {
// without stereo information
bond.setStereo(IBond.Stereo.NONE);
}
ac.addBond(bond);
}
}
Expand Down

0 comments on commit 7f44e3d

Please sign in to comment.