Skip to content

Commit

Permalink
Merge pull request #50 from volkamerlab/smiles-fix
Browse files Browse the repository at this point in the history
Smiles fix
  • Loading branch information
t-kimber authored Sep 30, 2021
2 parents 8857185 + 188ada4 commit da819cd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion maxsmi/tests/test_utils_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_get_max_length(list_, solution):
[
(["Cl"], ["L"]),
(["CBrCC", "C@@C", "CCC"], ["CRCC", "C$C", "CCC"]),
(["[Se]\\C", "se", "seZn"], ["[E]\\C", "e", "eZ"]),
(["[Se]\\C", "SiZn"], ["[E]\\C", "TZ"]),
(["Si"], ["T"]),
],
)
Expand Down
1 change: 0 additions & 1 deletion maxsmi/utils_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def char_replacement(list_smiles):
smile.replace("Cl", "L")
.replace("Br", "R")
.replace("Se", "E")
.replace("se", "e")
.replace("Zn", "Z")
.replace("Si", "T")
.replace("@@", "$")
Expand Down
2 changes: 1 addition & 1 deletion maxsmi/utils_smiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def smiles_from_folder_name(url_encoded_smiles):
# aromatic atoms
"b", # boron
"c", # carbon
"e", # remplacement for se
"e", # use case
"i", # iodine
"n", # nitrogen
"o", # oxygen
Expand Down

0 comments on commit da819cd

Please sign in to comment.