Skip to content

Commit 506b7aa

Browse files
committed
Added a "degugging" mode.
1 parent fb1d830 commit 506b7aa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plotter/structplot.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,10 @@ def main(result_files, fmt, outdir, popfile=None):
174174
outfile = os.path.join(outdir, files.split(os.sep)[-1])
175175
# Create plots
176176
plotter(data, pops, outfile)
177+
178+
if __name__ == "__main__":
179+
from sys import argv
180+
# Usage: structplot.py results_files format outdir
181+
datafile = []
182+
datafile.append(argv[1])
183+
main(datafile, argv[2], argv[3])

0 commit comments

Comments
 (0)