Skip to content

Commit

Permalink
Handle lines without logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sminot committed Feb 5, 2024
1 parent 33aedb6 commit 57ae1e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/famli_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
sample = fp[:-len(".log")]
with open(fp) as handle:
for line in handle:
if "[FAMLI parse] " not in line:
continue
line = line.rstrip("\\n").split("[FAMLI parse] ", 1)[1]
if line.startswith("Time elapsed: "):
dat[sample]["seconds"] = float(line[len("Time elapsed: "):].replace(",", ""))
Expand Down

0 comments on commit 57ae1e0

Please sign in to comment.