Convert to load_from_config() handling v0.2
authorW. Trevor King <wking@tremily.us>
Fri, 24 May 2013 21:31:56 +0000 (17:31 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 24 May 2013 21:31:56 +0000 (17:31 -0400)
commite8c45d0ad87166273a281e44a03204a673a519cb
tree8cc455305be1727411b946e66904decd68fe9b3e
parentf3a017f23e7f8e0ce5bf875b5ab27ff69876c5a3
Convert to load_from_config() handling

Rather than juggling independent configurations, consolidate them
under ScanConfig in the style of pyafm.storage.  This makes it easy to
load a full scanning config from ~/.config/unfold-default.yaml, which
is a plain-text file that can easily be tweaked by hand.

To generate an initial unfold-default.yaml file, try something like:

  >>> import unfold_protein.storage as storage
  >>> config = storage.get_default_config()
  >>> storage.save_scan_config(config=config)'

which uses defaults from unfold_protein.config as well as the default
AFM configuration from pyafm.storage.load_config().
unfold.py
unfold_protein/config.py
unfold_protein/scan.py
unfold_protein/storage.py [new file with mode: 0644]
unfold_protein/unfolder.py