def __init__(self, mead_settings_config=None): super(Task, self).__init__() self.config_params = None self.mead_settings_config = get_mead_settings(mead_settings_config) if 'datacache' not in self.mead_settings_config: self.data_download_cache = os.path.expanduser("~/.bl-data") self.mead_settings_config['datacache'] = self.data_download_cache else: self.data_download_cache = os.path.expanduser(self.mead_settings_config['datacache']) logger.info("using %s as data/embeddings cache", self.data_download_cache)
def __init__(self, mead_settings_config=None): super(Task, self).__init__() self.config_params = None self.mead_settings_config = get_mead_settings(mead_settings_config) if 'datacache' not in self.mead_settings_config: self.data_download_cache = os.path.expanduser("~/.bl-data") self.mead_settings_config['datacache'] = self.data_download_cache else: self.data_download_cache = os.path.expanduser(self.mead_settings_config['datacache']) logger.info("using %s as data/embeddings cache", self.data_download_cache)
def __init__(self, logger_config, mead_settings_config=None): super(Task, self).__init__() self.config_params = None self.mead_settings_config = get_mead_settings(mead_settings_config) if 'datacache' not in self.mead_settings_config: self.data_download_cache = os.path.expanduser("~/.bl-data") self.mead_settings_config['datacache'] = self.data_download_cache else: self.data_download_cache = os.path.expanduser( self.mead_settings_config['datacache']) print("using {} as data/embeddings cache".format( self.data_download_cache)) self._configure_logger(logger_config)
def get_settings(settings): mead_settings = get_mead_settings(settings) hpctl_settings = mead_settings.pop('hpctl', {}) return hpctl_settings, mead_settings
def get_settings(settings): mead_settings = get_mead_settings(settings) hpctl_settings = mead_settings.pop('hpctl', {}) return hpctl_settings, mead_settings