Skip to content

Commit

Permalink
command-line added to log
Browse files Browse the repository at this point in the history
  • Loading branch information
marioernestovaldes committed May 26, 2021
1 parent fa6b454 commit 8620754
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GMXMMPBSA/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,9 @@ def get_cl_args(self, args=None):
if self.master:
self.FILES = self.clparser.parse_args(args)
# save args in gmx_MMPBSA.log
with open('gmx_MMPBSA.log', 'a') as log:
log.write('[INFO ] Command-line\n'
' gmx_MMPBSA ' + ' '.join(args) + '\n')
logging.info('Command-line\n'
' gmx_MMPBSA ' + ' '.join(args) + '\n')

else:
self.FILES = object()
# Broadcast the FILES
Expand Down

0 comments on commit 8620754

Please sign in to comment.