Skip to content

Commit

Permalink
fix: parse result bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunity committed Sep 15, 2022
1 parent cf7d5f6 commit 11f3157
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hmtpbsa/pbsa/pbsarun.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,5 @@ def save_results(self, energyfile='Energy.csv', decfile='Dec.csv', mmxsafile=Non
return
deltaG, resG = parse_GMXMMPBSA_RESULTS(mmxsafile=mmxsafile)
deltaG.to_csv(energyfile)
if resG:
if resG is not None:
resG.to_csv(decfile)
8 changes: 4 additions & 4 deletions hmtpbsa/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def base_pipeline(receptorfile, ligandfiles, paras, nt=1, mmpbsafile=None, outfi
statu = 'F_GBSA'
dl = d
logging.warning('Failed to run GBSA for ligand: %s'%ligandName)
ligandnames.append(ligandName)
status.append(statu)
ligandnames.extend([ligandName]*len(dl))
status.extend([statu]*len(dl))
if df is None:
df = dl
else:
Expand Down Expand Up @@ -179,8 +179,8 @@ def minim_pipeline(receptorfile, ligandfiles, paras, mmpbsafile=None, nt=1, outf
statu = 'F_GBSA'
dl = d
logging.warning('Failed to run GBSA for ligand: %s'%ligandName)
ligandnames.append(ligandName)
status.append(statu)
ligandnames.extend([ligandName]*len(dl))
status.extend([statu]*len(dl))
if df is None:
df = dl
else:
Expand Down

0 comments on commit 11f3157

Please sign in to comment.