예제 #1
0
 def __init__(self, **kwargs):
     self.pre = self.__class__.__name__  # auxiliary string for debugging output
     # print(self.pre,"__init__ : parameter_defs : ",self.parameter_defs)
     # check kwargs agains parameter_defs, attach ok'd parameters to this
     # object as attributes
     parameterInitCheck(self.parameter_defs, kwargs, self)
     self.logger = getLogger(self.pre)  # hierarchical logger
     self.logger.debug("__init__ : hello")
예제 #2
0
파일: cool1.py 프로젝트: elsampsa/skeleton
    def __init__(self, **kwargs):
        # if you need to call the superclass constructor:
        # super().__init__(**kwargs) # python3
        # super(FancyHelloWorld, self).__init__(**kwargs) # python2 compatible

        # auxiliary string for debugging output
        self.pre = self.__class__.__name__ + " : "
        # check kwargs agains parameter_defs, attach ok'd parameters to this
        # object as attributes
        parameterInitCheck(self.parameter_defs, kwargs, self)
예제 #3
0
파일: fancy.py 프로젝트: elsampsa/skeleton
 def __init__(self, **kwargs):
     self.pre = self.__class__.__name__  # auxiliary string for debugging output
     parameterInitCheck(self.parameter_defs, kwargs,
                        self)  # check for input parameters
     self.logger = getLogger(self.pre)  # hierarchical logger
     self.logger.debug("__init__ : hello")
예제 #4
0
 def __init__(self, **kwargs):
     self.pre = self.__class__.__name__ + " : "  # auxiliary string for debugging output
     parameterInitCheck(
         self.parameter_defs, kwargs, self
     )  # check kwargs agains parameter_defs, attach ok'd parameters to this object as attributes