From: W. Trevor King Date: Fri, 16 Mar 2012 02:38:26 +0000 (-0400) Subject: Actually load the config from storage in load_afm(). X-Git-Tag: v0.4~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5034e5b79f0381fd23a18582e8245a19b8c26d4b;p=pyafm.git Actually load the config from storage in load_afm(). --- diff --git a/pyafm/storage.py b/pyafm/storage.py index 28a61b5..b764730 100644 --- a/pyafm/storage.py +++ b/pyafm/storage.py @@ -32,6 +32,7 @@ def load_afm(filename=None, group=None, devices=None): assert group.endswith('/'), group _LOG.info('loading AFM config from {} {}'.format(filename, group)) config = _AFMConfig(storage=_HDF5_Storage(filename=filename, group=group)) + config.load() _LOG.debug( 'constructing AFM from configuration:\n{}'.format(config.dump())) return AFM(config=config, devices=devices)