Skip to content

Commit

Permalink
fix ligpargen url
Browse files Browse the repository at this point in the history
  • Loading branch information
htz1992213 committed Dec 19, 2023
1 parent 8f82809 commit 9fc5995
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mdgo/forcefield/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
else:
self.web = webdriver.Chrome(service=self.server, options=self.options)
self.wait = WebDriverWait(self.web, 10)
self.web.get("http://zarbi.chem.yale.edu/ligpargen/")
self.web.get("http://traken.chem.yale.edu/ligpargen/")
time.sleep(1)
print("LigParGen server connected.")

Expand All @@ -109,7 +109,7 @@ def data_from_pdb(self, pdb_dir: str):
Args:
pdb_dir: The path to the input pdb structure file.
"""
self.web.get("http://zarbi.chem.yale.edu/ligpargen/")
self.web.get("http://traken.chem.yale.edu/ligpargen/")
time.sleep(1)
upload = self.web.find_element(By.XPATH, '//*[@id="exampleMOLFile"]')
try:
Expand All @@ -133,7 +133,7 @@ def data_from_smiles(self, smiles_code):
Args:
smiles_code: The SMILES code for the LigParGen input.
"""
self.web.get("http://zarbi.chem.yale.edu/ligpargen/")
self.web.get("http://traken.chem.yale.edu/ligpargen/")
time.sleep(1)
smile = self.web.find_element(By.XPATH, '//*[@id="smiles"]')
smile.send_keys(smiles_code)
Expand Down

0 comments on commit 9fc5995

Please sign in to comment.