Description
We'll need to fix this for loop as snakemake added a "Job Stats" line: https://github.com/fulcrumgenomics/python-snakemake-skeleton/blob/36238b503927dabeeadf3745a051fb6634dadf3a/src/python/pyclient/tests/util.py#L33
fix:
def fn(d: Dict[str, Any]) -> None:
if d["level"] != "run_info":
return
# NB: skip the first three and two lines
for counts_line in d["msg"].split("\n")[3:-2]:
counts_line = counts_line.strip()
job, count, _, _ = counts_line.split()
assert int(count) > 0, counts_line
self.rule_count[job] += int(count)
Metadata
Metadata
Assignees
Labels
No labels