def __init__(self, **kwargs): _cell_base.__init__(self) _cell_base.declare_params(self) for k, v in kwargs.iteritems(): self.params.at(k).set(v) self.params.notify() _cell_base.declare_io(self) _cell_base.configure(self) if self.__doc__ is None: self.__doc__ = "TODO docstr me." self.__doc__ = self.gen_doc(self.__doc__)
def __init__(self, *args, **kwargs): _cell_base.__init__(self) if args: _cell_base.name(self, args[0]) _cell_base.declare_params(self) for k, v in kwargs.iteritems(): self.params.at(k).set(v) self.params.notify() _cell_base.declare_io(self) if self.__doc__ is None: self.__doc__ = "TODO docstr me." self._short_doc = self.__doc__ self.__doc__ = self.gen_doc(self.__doc__)