simonduerr commited on
Commit
2aa7536
1 Parent(s): 7f2c740

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -309,15 +309,17 @@ def get_pdb(pdb_code="", filepath=""):
309
 
310
 
311
  def preprocess_mol(pdb_code="", filepath=""):
312
- print(filepath.name)
313
  print(pdb_code)
314
  if pdb_code is None or pdb_code == "":
315
  try:
 
316
  mol = Molecule(filepath.name)
317
  except AttributeError as e:
318
  return None
319
  else:
320
  os.system(f"wget -qnc https://files.rcsb.org/view/{pdb_code}.pdb")
 
 
321
  mol = Molecule(f"{pdb_code}.pdb")
322
  mol.write("original.pdb")
323
  # clean messy files and only include protein itself
 
309
 
310
 
311
  def preprocess_mol(pdb_code="", filepath=""):
 
312
  print(pdb_code)
313
  if pdb_code is None or pdb_code == "":
314
  try:
315
+ print(filepath.name)
316
  mol = Molecule(filepath.name)
317
  except AttributeError as e:
318
  return None
319
  else:
320
  os.system(f"wget -qnc https://files.rcsb.org/view/{pdb_code}.pdb")
321
+ print(os.getcwd())
322
+ print(os.listdir())
323
  mol = Molecule(f"{pdb_code}.pdb")
324
  mol.write("original.pdb")
325
  # clean messy files and only include protein itself