Skip to content

Commit

Permalink
Merge pull request #130 from SyneRBI/skip-data
Browse files Browse the repository at this point in the history
PETRIC_SKIP_DATA option
  • Loading branch information
casperdcl authored Oct 11, 2024
2 parents 0f79b70 + 9976762 commit b429893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion petric.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def get_image(fname):
if __name__ != "__main__":
# load up first data-set for people to play with
srcdir, outdir, metrics = data_dirs_metrics[0]
if srcdir is None:
if srcdir is None or os.getenv("PETRIC_SKIP_DATA", False):
data = None
else:
data = get_data(srcdir=srcdir, outdir=outdir)
Expand Down

0 comments on commit b429893

Please sign in to comment.