Actually load the config from storage in load_afm().
authorW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 02:38:26 +0000 (22:38 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 02:38:26 +0000 (22:38 -0400)
pyafm/storage.py

index 28a61b5c40eb4e5a5981a141321274a5949f92bc..b764730cc8ec6de4311c64e218752cb12e4a9f0f 100644 (file)
@@ -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)