Skip to content

Commit

Permalink
fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jul 2, 2024
1 parent 99266c6 commit a78fb4a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions petric.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,11 @@ def get_data(srcdir=".", outdir=OUTDIR, sirf_verbosity=0):

if __name__ != "__main__":
srcdir, outdir, metrics = data_dirs_metrics[0]
data = get_data(srcdir=srcdir, outdir=outdir)
metrics[0].reset()
if srcdir is None:
data = None
else:
data = get_data(srcdir=srcdir, outdir=outdir)
metrics[0].reset()
else:
from docopt import docopt
args = docopt(__doc__)
Expand Down

0 comments on commit a78fb4a

Please sign in to comment.