Ejemplo n.º 1
0
def create_experiment_job_logs_path(experiment_job_name, temp):
    if temp:
        check_archive_path(settings.LOGS_ARCHIVE_ROOT)
        return create_experiment_job_path(experiment_job_name,
                                          settings.LOGS_ARCHIVE_ROOT)
    persistence_logs = stores.get_logs_paths()
    return create_experiment_job_path(experiment_job_name, persistence_logs)
Ejemplo n.º 2
0
def get_experiment_logs_path(experiment_name, temp):
    values = experiment_name.split('.')
    if len(values) == 3:
        values.insert(2, 'experiments')
    else:
        values.insert(2, 'groups')

    if temp:
        return os.path.join(settings.LOGS_ARCHIVE_ROOT, '/'.join(values))
    persistence_logs = stores.get_logs_paths()
    return os.path.join(persistence_logs, '/'.join(values))
Ejemplo n.º 3
0
def get_project_logs_path(project_name):
    persistence_logs = stores.get_logs_paths()
    return os.path.join(persistence_logs, project_name.replace('.', '/'))
Ejemplo n.º 4
0
def get_job_logs_path(job_name, temp):
    if temp:
        return os.path.join(settings.LOGS_ARCHIVE_ROOT,
                            job_name.replace('.', '/'))
    persistence_logs = stores.get_logs_paths()
    return os.path.join(persistence_logs, job_name.replace('.', '/'))
Ejemplo n.º 5
0
def get_experiment_group_logs_path(experiment_group_name):
    values = experiment_group_name.split('.')
    values.insert(2, 'groups')
    persistence_logs = stores.get_logs_paths()
    return os.path.join(persistence_logs, '/'.join(values))