Skip to content

Commit

Permalink
Add URL Encoding to Chemed (#65)
Browse files Browse the repository at this point in the history
* Update exmol.py

* Bumped version

* Update changelog.rst
  • Loading branch information
whitead authored Jan 4, 2022
1 parent fe373d9 commit 8a96722
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
==========

v0.5.2 (2021-1-4)
-------------------
* Fixed SMILES escaping in URL in chemed

v0.5.1 (2021-11-16)
-------------------
* Fixed similarity float vs int in chemed
Expand Down
2 changes: 1 addition & 1 deletion exmol/exmol.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def run_chemed(
_pbar.set_description("⚡CHEMED⚡ is Experimental ☠️")
else:
print("⚡CHEMED⚡ is Experimental ☠️")
url = f"https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/fastsimilarity_2d/smiles/{origin_smiles}/property/CanonicalSMILES/JSON"
url = f"https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/fastsimilarity_2d/smiles/{requests.utils.quote(origin_smiles)}/property/CanonicalSMILES/JSON"
try:
reply = requests.get(
url,
Expand Down
2 changes: 1 addition & 1 deletion exmol/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.5.1"
__version__ = "0.5.2"

0 comments on commit 8a96722

Please sign in to comment.