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):
"""
#NOTE: centerzero plot modifier should be activated (set centerzero
#1).
- def __init__(self):
+ def __init__(self, plugin):
super(MultifitCommand, self).__init__(
name='multifit',
arguments=[
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