Add --sawsim option to velocity_dependant_scan.main().
authorW. Trevor King <wking@drexel.edu>
Wed, 20 Oct 2010 08:04:59 +0000 (04:04 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 20 Oct 2010 08:04:59 +0000 (04:04 -0400)
pysawsim/velocity_dependant_scan.py

index bb29272fcf6bfaf693ec117183d372f99aab7ff9..59c9cf44e9e20d9ce708a0de073c6e1dca071b66 100644 (file)
@@ -222,6 +222,10 @@ def main():
     usage = "%prog [options] velocity_file"
 
     parser = optparse.OptionParser(usage)
+    parser.add_option("-s","--sawsim", dest="sawsim",
+                      metavar="PATH",
+                      help="Set sawsim binary (%default).",
+                      default=sawsim_histogram.SAWSIM)
     parser.add_option("-f","--param-format", dest="param_format",
                       metavar="FORMAT",
                       help="Convert params to sawsim options (%default).",
@@ -274,6 +278,7 @@ def main():
     param_ranges = parse_param_ranges_string(options.param_range)
     velocity_file = args[0]
 
+    sawsim_histogram.SAWSIM = options.sawsim
     sawsim_histogram.CACHE_DIR = options.cache_dir
     manager = get_manager(options.manager)()
     try: