def __init__(self, logger=None, baseName='base', name='sensi', **kwargs): if logger is None: logger = basic_logger() super().__init__(logger=logger, name=name, inher_d={}, **kwargs) #Qcoms -> ComWrkr """overwrite the ComWrkr default""" self.logger = logger self.logger.debug('SensiRunner.__init__ finished \n') self.baseName = baseName self.resname = '%s_%s_%s' % (self.name, self.tag, datetime.datetime.now().strftime('%m%d'))
# imports------------ #============================================================================== #python import os, configparser, logging import pandas as pd import numpy as np mod_logger = logging.getLogger('hp') #creates a child logger of the root #============================================================================== # custom #============================================================================== #standalone runs if __name__ =="__main__": from hlpr.logr import basic_logger mod_logger = basic_logger() #plugin runs else: mod_logger = logging.getLogger('common') #get the root logger from hlpr.exceptions import QError as Error #============================================================================== # functions------------- #============================================================================== class ComWrkr(object): #common methods for all classes progressBar = None feedback = None