efbfbf: upgrade to Bugs Everywhere Directory v1.5
[sawsim.git] / pysawsim / parameter_error.py
old mode 100755 (executable)
new mode 100644 (file)
index ee915b2..44031f2
@@ -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):
             '`<bin_edge>` 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