>>> c = HookeConfigParser(paths=DEFAULT_PATHS,
... default_settings=DEFAULT_SETTINGS)
>>> c.write(sys.stdout) # doctest: +ELLIPSIS
- # Control display appearance: colour, ???, etc.
- [display]
- colour_ext = None
- colour_ret = None
+ # Default environmental conditions in case they are not specified in
+ # the force curve data.
+ [conditions]
+ # Temperature in Kelvin
+ temperature = 301
+ <BLANKLINE>
+ # Configure loggers, see
+ # http://docs.python.org/library/logging.html#configuration-file-format
+ [loggers]
+ # Hooke only uses the hooke logger, but other included modules may
+ # also use logging and you can configure their loggers here as well.
+ keys = root, hooke
...
"""
def __init__(self, paths=None, default_settings=None, defaults=None,
--------
>>> data = numpy.arange(-3, 4)
- >>> above_noise(data, side='both', min_deviations=1.0, mean=0, std=1.0)
- array([ True, False, False, False, False, False, True], dtype=bool)
- >>> above_noise(data, side='positive', min_deviations=1.0, mean=0, std=1.0)
- array([False, False, False, False, False, False, True], dtype=bool)
- >>> above_noise(data, side='negative', min_deviations=1.0, mean=0, std=1.0)
- array([ True, False, False, False, False, False, False], dtype=bool)
+ >>> above_noise(data, side='both', min_deviations=1.1, mean=0, std=1.0)
+ array([ True, True, False, False, False, True, True], dtype=bool)
+ >>> above_noise(data, side='positive', min_deviations=1.1, mean=0, std=1.0)
+ array([False, False, False, False, False, True, True], dtype=bool)
+ >>> above_noise(data, side='negative', min_deviations=1.1, mean=0, std=1.0)
+ array([ True, True, False, False, False, False, False], dtype=bool)
"""
if mean == None:
mean = data.mean()