Skip to content

Commit

Permalink
remodel profile.tsv file, addresses #144
Browse files Browse the repository at this point in the history
  • Loading branch information
stolarczyk committed May 8, 2019
1 parent 535a4c7 commit ee2abe3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pypiper/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,10 +1126,10 @@ def _report_profile(self, command, lock_name, elapsed_time, memory):
"""
Writes a string to self.pipeline_profile_file.
"""
message_raw = str(command) + "\t " + \
str(lock_name) + "\t" + \
message_raw = str(command) + "\t" + \
str(datetime.timedelta(seconds = round(elapsed_time, 2))) + "\t " + \
str(memory)
str(memory) + "\t" + \
str(os.path.relpath(lock_name, self.outfolder))

with open(self.pipeline_profile_file, "a") as myfile:
myfile.write(message_raw + "\n")
Expand Down

0 comments on commit ee2abe3

Please sign in to comment.