From: W. Trevor King Date: Wed, 20 Oct 2010 07:19:01 +0000 (-0400) Subject: Rearrange velocity_dependant_scan.main() to group residual-related options together. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=04b8ed28511a22c08829d71e1a3ea3f003fc7adb;p=sawsim.git Rearrange velocity_dependant_scan.main() to group residual-related options together. --- diff --git a/pysawsim/velocity_dependant_scan.py b/pysawsim/velocity_dependant_scan.py index 764c03c..b4c9df0 100644 --- a/pysawsim/velocity_dependant_scan.py +++ b/pysawsim/velocity_dependant_scan.py @@ -243,11 +243,8 @@ def main(): help="Job manager name (one of %s) (%%default)." % (', '.join(MANAGERS)), default=MANAGERS[0]) - parser.add_option("--logx", dest="logx", - help="Use a log scale for the x range.", - default=False, action="store_true") - parser.add_option("--logy", dest="logy", - help="Use a log scale for the y range.", + parser.add_option("-C","--use_cache", dest="use_cache", + help="Use cached simulations if they exist (vs. running new simulations) (%default)", default=False, action="store_true") parser.add_option("-d","--cache-dir", dest="cache_dir", metavar="STRING", @@ -260,12 +257,15 @@ def main(): parser.add_option("-P","--plot-residuals", dest="plot_residuals", help="Generate residual difference plots for each point in the plot range.", default=False, action="store_true") + parser.add_option("--logx", dest="logx", + help="Use a log scale for the x range.", + default=False, action="store_true") + parser.add_option("--logy", dest="logy", + help="Use a log scale for the y range.", + default=False, action="store_true") parser.add_option("-c","--contour-plot", dest="contour_plot", help="Select contour plot (vs. the default pseudocolor plot).", default=False, action="store_true") - parser.add_option("-C","--use_cache", dest="use_cache", - help="Use cached simulations if they exist (vs. running new simulations) (%default)", - default=False, action="store_true") options,args = parser.parse_args() initial_params = [float(p) for p in options.initial_params.split(",")] param_ranges = parse_param_ranges_string(options.param_range)