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)
>>> 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
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).')