X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=pysawsim%2Fparameter_error.py;h=44031f249f535f8f97039e0d6e59bbf206518d7e;hb=f72ca66576375516d6705af60a1e72596c2ec73b;hp=ee915b2dcfdf5113a644a30f1084e2501806dd76;hpb=7e07146e0f970b782e92d26a5d2424502131f209;p=sawsim.git diff --git a/pysawsim/parameter_error.py b/pysawsim/parameter_error.py old mode 100755 new mode 100644 index ee915b2..44031f2 --- a/pysawsim/parameter_error.py +++ b/pysawsim/parameter_error.py @@ -22,6 +22,7 @@ import numpy +from . import PYSAWSIM_LOG_LEVEL_MSG as _PYSAWSIM_LOG_LEVEL_MSG from .histogram import Histogram from .parameter_scan import ( EXAMPLE_HISTOGRAM_FILE_CONTENTS, HistogramMatcher, @@ -80,8 +81,7 @@ def main(argv=None): >>> f = tempfile.NamedTemporaryFile() >>> f.write(EXAMPLE_HISTOGRAM_FILE_CONTENTS) >>> f.flush() - >>> main(['-s', 'bin/sawsim', - ... '-r', '[1e-6,1e-4,3]', '--log', + >>> main(['-r', '[1e-6,1e-4,3]', '--log', ... '-N', '4', '-t', '0.8', ... f.name]) ... # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE, +REPORT_UDIFF @@ -123,8 +123,10 @@ def main(argv=None): '`` should mark the left-hand side of the bin, and', 'all bins should be of equal width (so we know where the last', 'one ends).', + _PYSAWSIM_LOG_LEVEL_MSG, ]) parser = OptionParser(usage, epilog=epilog) + parser.format_epilog = lambda formatter: epilog+'\n' for option in sr.optparse_options: if option.dest == 'param_string': continue