def __init__(self, config=None, **kwargs):
        """Config preparation and various initialization"""
        if config:
            if isinstance(config, type):
                config = config()
            else:
                config = config.copy()
        else:
            config = Config()

        config(**kwargs)
        self.config = config
        self.state = None
        self.uuid = str(uuid4())
        self.raw_series = []
        self.xml_filters = []
def __init__ ( self , config = None , ** kwargs ) : if config : if isinstance ( config , type ) : config = config ( ) else : config = config . copy ( ) else : config = Config ( ) config ( ** kwargs ) self . config = config self . state = None self . uuid = str ( uuid4 ( ) ) self . raw_series = [ ] self . xml_filters = [ ]
Config preparation and various initialization