def create_experiment_logs_path(cls, experiment_name, temp, persistence='default'): import conf if temp: check_or_create_path(conf.get('LOGS_ARCHIVE_ROOT')) return create_experiment_path(experiment_name, conf.get('LOGS_ARCHIVE_ROOT')) persistence_logs = cls.get_logs_path(persistence=persistence) return create_experiment_path(experiment_name, persistence_logs)
def create_experiment_outputs_path(cls, persistence, experiment_name): persistence_outputs = cls.get_outputs_path(persistence=persistence) values = experiment_name.split('.') path = create_experiment_path(experiment_name, persistence_outputs) path = os.path.join(path, values[-1]) if not os.path.isdir(path): create_path(path) return path