Skip to content

Commit

Permalink
eter group tested for Joback and error detected found in UNIFAC eter …
Browse files Browse the repository at this point in the history
…bout it's also fixed
  • Loading branch information
SalvadorBrandolin committed Nov 8, 2023
1 parent 61e5d35 commit 874d9a1
Show file tree
Hide file tree
Showing 11 changed files with 299 additions and 144 deletions.
8 changes: 4 additions & 4 deletions tests/classic_unifac_groups/test_13_ch2o.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,20 @@
("COCOC(C)OCOC", {"CH3O": 2, "CH2O": 2, "CH": 1, "CH3": 1}, "smiles"),
(
"CC(C)OCOC(C)OCOC(C)C",
{"CH3": 5, "CH": 1, "HCO": 2, "CH2O": 2},
{"CH3": 5, "CH": 1, "CHO": 2, "CH2O": 2},
"smiles",
),
(
"CC(C)OCOCC(OCOC(C)C)OCOC(C)C",
{"CH3": 6, "CH": 2, "CH2O": 4, "HCO": 2},
{"CH3": 6, "CH": 2, "CH2O": 4, "CHO": 2},
"smiles",
),
(
"CC(C)OCOC(OCOC(C)C)OCOC(C)C",
{"CH3": 6, "HCO": 3, "CH2O": 3, "CH": 1},
{"CH3": 6, "CHO": 3, "CH2O": 3, "CH": 1},
"smiles",
),
("CC(C)OCOC(C)C", {"CH3": 4, "HCO": 1, "CH2O": 1, "CH": 1}, "smiles"),
("CC(C)OCOC(C)C", {"CH3": 4, "CHO": 1, "CH2O": 1, "CH": 1}, "smiles"),
("CCOCOCC", {"CH3": 2, "CH2O": 2, "CH2": 1}, "smiles"),
("COCOC", {"CH3O": 2, "CH2": 1}, "smiles"),
# Problematics with acids
Expand Down
1 change: 1 addition & 0 deletions tests/classic_unifac_groups/test_20_cooh.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# UNIFAC
trials_unifac = [
("OC(O)=O", {"COOH": 1, "OH": 1}, "smiles"),
("CCOC(O)=O", {"COOH": 1, "CH2O": 1, "CH3": 1}, "smiles"),
# 2,4-Diaminobutyric acid
(
Expand Down
14 changes: 11 additions & 3 deletions tests/joback/test_aldehydes.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
# 2-Methyl-3-butenal
(
"CC(C=C)C=O",
{"-CH3": 1, ">CH-": 1, "CH2=CH-": 1, "O=CH- (aldehyde)": 1},
{"-CH3": 1, ">CH-": 1, "=CH2": 1, "=CH-": 1, "O=CH- (aldehyde)": 1},
"smiles",
),
# Cinnamaldehyde
(
"C1=CC=C(C=C1)C=CC=O",
{"ring=CH-": 5, "ring=C<": 1, "-CH=CH-": 1, "O=CH- (aldehyde)": 1},
{"ring=CH-": 5, "ring=C<": 1, "=CH-": 2, "O=CH- (aldehyde)": 1},
"smiles",
),
# benzaldehyde
Expand Down Expand Up @@ -60,7 +60,15 @@
("CC=O", {"-CH3": 1, "O=CH- (aldehyde)": 1}, "smiles"),
(
r"CCCCCC\C(C=O)=C/C1=CC=CC=C1",
{},
{
"-CH3": 1,
"O=CH- (aldehyde)": 1,
"-CH2-": 5,
"=C<": 1,
"=CH-": 1,
"ring=CH-": 5,
"ring=C<": 1,
},
"smiles",
),
]
Expand Down
6 changes: 5 additions & 1 deletion tests/joback/test_esters.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
"smiles",
),
# Methyl acrylate
("COC(=O)C=C", {"-CH3": 1, "CH2=CH-": 1, "-COO- (ester)": 1}, "smiles"),
(
"COC(=O)C=C",
{"-CH3": 1, "=CH2": 1, "=CH-": 1, "-COO- (ester)": 1},
"smiles",
),
# Aspirin
(
"CC(=O)OC1=CC=CC=C1C(=O)O",
Expand Down
Loading

0 comments on commit 874d9a1

Please sign in to comment.