From d66aa52d719cf7edad8cac20b711e4c16d2899de Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Fri, 12 Oct 2012 01:56:20 -0400 Subject: Bug fixes from mixed-criticality experiments --- plot_exps.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'plot_exps.py') diff --git a/plot_exps.py b/plot_exps.py index e69de29..06f43b0 100644 --- a/plot_exps.py +++ b/plot_exps.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +from __future__ import print_function + +from optparse import OptionParser + +def parse_args(): + parser = OptionParser("usage: %prog [options] [csv_dir]...") + + parser.add_option('-o', '--out-dir', dest='out_dir', + help='directory for plot output', default='plot-data') + parser.add_option('-f', '--force', action='store_true', default=False, + dest='force', help='overwrite existing data') + + return parser.parse_args() + +def main(): + opts, args = parse_args() + args = args or [os.getcwd()] + +if __name__ == '__main__': + main() -- cgit v1.2.2