Skip to content

Commit

Permalink
#1458 Failed UT api\indigo_test.py:test_convert_smarts (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliaksandrDziarkach authored Dec 22, 2023
1 parent 3e3ef6f commit fd3fa7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions utils/indigo-service/backend/service/tests/api/indigo_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,10 @@ def test_convert_canonical_smiles(self):

def test_convert_smarts(self):
smarts = [
"[O]-[*]-[C](-[#9])(-[#9])-[#9]",
"[#6,#1]",
"[#1,#1]",
"[#9,#17,#35,#53,N&+,$([OH]-*=[!#6]),+;*]",
"O-[*]-C(-F)(-F)-F",
"[#6,H]",
"[H,H]",
"[F,Cl,Br,I,N&+,$([OH]-*=[!#6]),+;*]",
]
results = []
# results_get = []
Expand Down
8 changes: 4 additions & 4 deletions utils/indigo-service/backend/service/v2/indigo_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,10 @@ def load_moldata(
)
md = MolData()

if "input-format" in options and options["input-format"] in (
"smarts",
"chemical/x-daylight-smarts",
):
input_format = mime_type
if "input-format" in options:
input_format = options["input-format"]
if input_format in ("smarts", "chemical/x-daylight-smarts"):
md.struct = indigo.loadSmarts(molstr)
md.is_query = True
elif molstr.startswith("InChI"):
Expand Down

0 comments on commit fd3fa7d

Please sign in to comment.