X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=hooke%2Fplugin%2F__init__.py;h=d04f3740f3797fae36e731a0d01de3a43d56622f;hp=3d3efd9b93a48666a8cda0739d55fd199eae5881;hb=b90995fb4b6d8151df862d40edc8c369d7052cfa;hpb=8cca7f228155f904a6b006361afd64d03ec60210 diff --git a/hooke/plugin/__init__.py b/hooke/plugin/__init__.py index 3d3efd9..d04f374 100644 --- a/hooke/plugin/__init__.py +++ b/hooke/plugin/__init__.py @@ -34,15 +34,14 @@ PLUGIN_MODULES = [ ('convfilt', True), ('cut', True), # ('fclamp', True), -# ('fit', True), # ('flatfilts-rolf', True), ('flatfilt', True), # ('jumpstat', True), -# ('macro', True), # ('massanalysis', True), # ('multidistance', True), # ('multifit', True), # ('pcluster', True), + ('polymer_fit', True), # ('procplots', True), # ('review', True), # ('showconvoluted', True), @@ -56,9 +55,11 @@ default. TODO: autodiscovery """ BUILTIN_MODULES = [ + 'command_stack', 'config', 'curve', 'debug', + 'engine', 'license', 'note', 'playlist', @@ -124,11 +125,15 @@ def argument_to_setting(section_name, argument): """Convert an :class:`~hooke.command.Argument` to a `~hooke.conf.Setting`. - This is a lossy transition, because + This is useful if, for example, you want to define arguments with + configurable default values. + + Conversion is lossy transition, because :class:`~hooke.command.Argument`\s store more information than `~hooke.conf.Setting`\s. """ return Setting(section_name, option=argument.name, value=argument.default, + type=argument.type, count=argument.count, help=argument._help) @@ -182,9 +187,5 @@ def load_graph(graph, config, include_section): % (item.name, dependency.data.name)) enabled[item.name] = False continue - try: - item.config = dict(config.items(item.setting_section)) - except configparser.NoSectionError: - pass items.append(item) return items