Skip to content

Commit

Permalink
Merge pull request #3 from jmmut/feature/stats
Browse files Browse the repository at this point in the history
fixed "complete" method in variants stats creation
  • Loading branch information
cyenyxe committed May 28, 2015
2 parents b095d99 + b428a56 commit a06ef69
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion variants_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,14 @@ def output(self):
'file' : luigi.LocalTarget(newest[1]) }

raise RuntimeError('No statistics files found')


def complete(self):
try:
self.output()
except RuntimeError:
return False

return True


class LoadVariantsStatistics(luigi.Task):
Expand Down

0 comments on commit a06ef69

Please sign in to comment.