Skip to content

Commit

Permalink
removing debugging print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jgmedina95 committed Feb 6, 2024
1 parent c3b7895 commit df6dd2d
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions mdagent/tools/base_tools/preprocess_tools/pdb_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ def run_packmol(self, PathRegistry):

# validate final pdb
pdb_validation = validate_pdb_format(f"{self.final_name}")
print("pdb_validation:", pdb_validation)
if pdb_validation[0] == 0:
# delete .inp files
# os.remove("packmol.inp")
Expand Down Expand Up @@ -489,14 +488,13 @@ def __init__(self, path_registry: typing.Optional[PathRegistry]):

def _get_sm_pdbs(self, small_molecules):
all_files = self.path_registry.list_path_names()
print(all_files)
for molecule in small_molecules:
# check path registry for molecule.pdb
if molecule not in all_files:
# download molecule using small_molecule_pdb from MolPDB
molpdb = MolPDB()
molpdb.small_molecule_pdb(molecule, self.path_registry)
print("small molecule pdbs created successfully")
print("Small molecules PDBs created successfully")

def _run(self, **values) -> str:
"""use the tool."""
Expand All @@ -509,7 +507,7 @@ def _run(self, **values) -> str:
return str(e)
error_msg = values.get("error", None)
if error_msg:
print("Error in inputs:", error_msg)
print("Error in Packmol inputs:", error_msg)
return f"Error in inputs: {error_msg}"
print("Starting Packmol Tool!")
pdbfile_ids = values.get("pdbfiles_id", [])
Expand Down Expand Up @@ -539,9 +537,7 @@ def _run(self, **values) -> str:
pdbfiles.extend(small_molecules_files)
pdbfile_names.extend(small_molecules_file_names)
pdbfile_ids.extend(small_molecules)
print("pdbfiles:", pdbfiles)
print("pdbfile_names:", pdbfile_names)
print("pdbfile_ids:", pdbfile_ids)

for pdbfile, pdbfile_name in zip(pdbfiles, pdbfile_names):
os.system(f"cp {pdbfile} {pdbfile_name}")
# check if packmol is installed
Expand All @@ -558,11 +554,6 @@ def _run(self, **values) -> str:
"'https://m3g.github.io/packmol/download.shtml'"
"and try again."
)
print("Running packmol!")
print("pdbfile_names:", pdbfile_names)
print("pdbfile_ids:", pdbfile_ids)
print("number_of_molecules:", number_of_molecules)
print("instructions:", instructions)

return packmol_wrapper(
self.path_registry,
Expand Down

0 comments on commit df6dd2d

Please sign in to comment.