Skip to content

Commit

Permalink
#2746 Incorrect phosphorus valence (#2754)
Browse files Browse the repository at this point in the history
  • Loading branch information
jblack-mestre authored Feb 18, 2025
1 parent f54ec57 commit 621a350
Show file tree
Hide file tree
Showing 7 changed files with 408 additions and 3 deletions.
2 changes: 2 additions & 0 deletions api/tests/integration/ref/rendering/basic.py.out
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ bond-length-options-3.png rendering status: OK
smart-layout-crown.png rendering status: OK
****** Nameless S-Group *****
sa-mono.png rendering status: OK
issue 2746 incorrect phosphorus valence
incorrect_phosphorus_valence_2746.png rendering status: OK
10 changes: 10 additions & 0 deletions api/tests/integration/tests/rendering/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@
renderer.renderToFile(mol, joinPathPy("out/sa-mono.png", __file__))
print(checkImageSimilarity("sa-mono.png"))

print("issue 2746 incorrect phosphorus valence")
indigo.resetOptions()
indigo.setOption("render-output-format", "png")
fname = "incorrect_phosphorus_valence_2746"
png_fname = fname + ".png"
cdxml_fname = joinPathPy("molecules/%s.cdxml" % fname, __file__)
mol = indigo.loadMoleculeFromFile(cdxml_fname)
renderer.renderToFile(mol, joinPathPy("out/" + png_fname, __file__))
print(checkImageSimilarity(png_fname))

if isIronPython():
renderer.Dispose()
indigo.Dispose()
Loading

0 comments on commit 621a350

Please sign in to comment.