Skip to content

Commit

Permalink
#1533 System attach two explicit hydrogens to atoms connected to "an…
Browse files Browse the repository at this point in the history
…y type" bonds

Fix UTs
  • Loading branch information
AliaksandrDziarkach committed Jan 25, 2024
1 parent 7b5aadf commit b058c73
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions api/tests/integration/ref/arom/arom_d_orbital.py.out
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
*** 0 ***
COC(c1[n]2s(c3c(c4c2cccc4)cccc3)(C(C)C)c1C(OC)=O)=O
element: can not calculate implicit hydrogens on aromatic S, charge 0, degree 4, 0 radical electrons
element: cannot calculate implicit hydrogens on aromatic S, charge 0, degree 4, 0 radical electrons
COC(c1[n]2s(c3c(c4c2cccc4)cccc3)(C(C)C)c1C(OC)=O)=O
element: can not calculate implicit hydrogens on aromatic S, charge 0, degree 4, 0 radical electrons
element: cannot calculate implicit hydrogens on aromatic S, charge 0, degree 4, 0 radical electrons
*** 1 ***
COC(C1N2S(C3C(C4C2=CC=CC=4)=CC=CC=3)(C(C)C)C=1C(OC)=O)=O
CC(C)S12C(=C(C(=O)OC)N1C1=CC=CC=C1C1=CC=CC=C21)C(=O)OC
COC(C1N2S(C3C(C4C2=CC=CC=4)=CC=CC=3)(C(C)C)C=1C(OC)=O)=O
CC(C)S12C(=C(C(=O)OC)N1C1=CC=CC=C1C1=CC=CC=C21)C(=O)OC
*** 2 ***
COC(C1[n]2s(c3c(c4c2cccc4)cccc3)(C(C)C)C=1C(OC)=O)=O
element: can not calculate implicit hydrogens on aromatic S, charge 0, degree 4, 0 radical electrons
element: cannot calculate implicit hydrogens on aromatic S, charge 0, degree 4, 0 radical electrons
COC(C1[n]2s(c3c(c4c2cccc4)cccc3)(C(C)C)C=1C(OC)=O)=O
element: can not calculate implicit hydrogens on aromatic S, charge 0, degree 4, 0 radical electrons
element: cannot calculate implicit hydrogens on aromatic S, charge 0, degree 4, 0 radical electrons
*** 3 ***
COC(c1[n]2s(C3C(C4C2=CC=CC=4)=CC=CC=3)(C(C)C)c1C(OC)=O)=O
CC(C)[s]12c(c(C(=O)OC)[n]1C1=CC=CC=C1C1=CC=CC=C21)C(=O)OC
Expand Down
8 changes: 4 additions & 4 deletions api/tests/integration/ref/basic/validate.py.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
** 0 **
Exception: element: can not calculate implicit hydrogens on aromatic N, charge 0, degree 2, 0 radical electrons
Exception: element: cannot calculate implicit hydrogens on aromatic N, charge 0, degree 2, 0 radical electrons

False
Cc1cccc[n]1
Expand Down Expand Up @@ -29,11 +29,11 @@ False
CC1NC=C(O)N=1
False
** 5 **
Exception: element: can not calculate implicit hydrogens on aromatic N, charge 0, degree 2, 0 radical electrons
Exception: element: cannot calculate implicit hydrogens on aromatic N, charge 0, degree 2, 0 radical electrons
dearomatization: non-unique dearomatization: Dearomatization is not unique. Cannot restore hydrogens.
Exception: element: can not calculate implicit hydrogens on aromatic N, charge 0, degree 2, 0 radical electrons
Exception: element: cannot calculate implicit hydrogens on aromatic N, charge 0, degree 2, 0 radical electrons
Exception: dearomatization: non-unique dearomatization: Dearomatization is not unique. Cannot restore hydrogens.
Exception: element: can not calculate implicit hydrogens on aromatic N, charge 0, degree 2, 0 radical electrons
Exception: element: cannot calculate implicit hydrogens on aromatic N, charge 0, degree 2, 0 radical electrons
** 6 **
True
element: bad valence on H having 1 drawn bonds, charge 1, and 0 radical electrons
Expand Down
2 changes: 1 addition & 1 deletion bingo/tests/data/reactions/checkreaction/std.json
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@
{
"query_id": 206,
"query_type": "checkreaction",
"expected": "element: can not calculate implicit hydrogens on aromatic C, charge 0, degree 1, 0 radical electrons"
"expected": "element: cannot calculate implicit hydrogens on aromatic C, charge 0, degree 1, 0 radical electrons"
},
{
"query_id": 207,
Expand Down

0 comments on commit b058c73

Please sign in to comment.