X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=hooke%2Fplugin%2Fmultifit.py;h=56befcaeef7f8c9d6d757993029da4f77e14e617;hb=943556f697f3ffd45719ed70a93fb1e67b6a31ef;hp=ee42ea56f3eb9d39148988e41bc5e5d2baaf485f;hpb=62cfb3bde4faa22da8d131571dc6f093682a0cca;p=hooke.git diff --git a/hooke/plugin/multifit.py b/hooke/plugin/multifit.py index ee42ea5..56befca 100644 --- a/hooke/plugin/multifit.py +++ b/hooke/plugin/multifit.py @@ -31,8 +31,7 @@ from ..plugin.playlist import PlaylistArgument class MultifitPlugin (Plugin): def __init__(self): super(MultifitPlugin, self).__init__(name='multifit') - self._commands = [MultifitCommand()] - self._setup_commands() + self._commands = [MultifitCommand(self)] class MultifitCommand (Command): @@ -46,7 +45,7 @@ class MultifitCommand (Command): """ #NOTE: centerzero plot modifier should be activated (set centerzero #1). - def __init__(self): + def __init__(self, plugin): super(MultifitCommand, self).__init__( name='multifit', arguments=[ @@ -86,7 +85,7 @@ data between them. Perform the fits on the current curve instead of iterating. """.strip()), ], - help=self.__doc__) + help=self.__doc__, plugin=plugin) def _run(self, hooke, inqueue, outqueue, params): counter=0