Better pysawsim.sawsim.SAWSIM detection via distutils.spawn.find_executable().
[sawsim.git] / pysawsim / parameter_error.py
old mode 100755 (executable)
new mode 100644 (file)
index 8813e2f..b75b310
@@ -30,6 +30,11 @@ from .sawsim_histogram import sawsim_histogram
 from .sawsim import SawsimRunner
 
 
+_multiprocess_can_split_ = True
+"""Allow nosetests to split tests between processes.
+"""
+
+
 def find_error_bounds(histogram_matcher, param_range, log_scale, threshold):
     if log_scale == False:
         ps = numpy.linspace(*param_range)
@@ -75,8 +80,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
@@ -140,9 +144,9 @@ def main(argv=None):
                       help='Residual type (from %s; default: %%default).'
                            % ', '.join(Histogram().types()),
                       default='jensen-shannon')
-    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('-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('-t', '--threshold', dest='threshold',
                       metavar='FLOAT', type='float', default='0.2',
                       help='Residual value that defines the location of the error bar (%default).')