def __init__(self, config): """ __init__() Purpose: Constructor for the HootPy class. Parameters: config [type=dictionary] Dictionary containing the configuration parameters for this run. """ self._valid_time = datetime.utcnow() for key, value in config.iteritems(): setattr(self, "_%s" % key, value) try: meta_filename = config['meta_filename'] except KeyError: meta_filename = "default/meta.hp" meta = Config(meta_filename) for key, value in meta.iteritems(): setattr(self, "_%s" % key, value) self._var_name_cache = [] self._sanitizeHootPy() self._sanitize() return