Esempio n. 1
0
def get_episode_count(cat, exp):
    exp_path = get_experiment_path(cat, exp)
    count = 0
    for episode in os.listdir(exp_path):
        episode_dir = os.path.join(exp_path, episode)
        if not os.path.isdir(episode_dir): continue
        count += 1
    return count
Esempio n. 2
0
def get_episode_count(cat,exp):
    exp_path = get_experiment_path(cat,exp)
    count = 0
    for episode in os.listdir(exp_path):
        episode_dir = os.path.join(exp_path, episode)
        if not os.path.isdir(episode_dir): continue
        count += 1
    return count
Esempio n. 3
0
def _get_episode_count(cat, exp):
    exp_path = get_experiment_path(cat, exp)
    count = 0
    for episode in list_directories(exp_path):
        episode_dir = join_paths(exp_path, episode)
        if not is_directory(episode_dir):
            continue
        count += 1
    return count
Esempio n. 4
0
def get_episode_files(cat, exp):
    episode_files = []
    exp_path = get_experiment_path(cat, exp)
    for episode in os.listdir(exp_path):
        episode_dir = os.path.join(exp_path, episode)
        if not os.path.isdir(episode_dir): continue
        for f in os.listdir(episode_dir):
            if f.endswith('.json') or f.endswith('.bson'):
                episode_files.append((f[:-5], os.path.join(episode_dir, f)))
    return episode_files
Esempio n. 5
0
def get_episode_files(cat,exp):
    episode_files = []
    exp_path = get_experiment_path(cat,exp)
    for episode in os.listdir(exp_path):
        episode_dir = os.path.join(exp_path, episode)
        if not os.path.isdir(episode_dir): continue
        for f in os.listdir(episode_dir):
            if f.endswith('.json') or f.endswith('.bson'):
                episode_files.append((f[:-5], os.path.join(episode_dir,f)))
    return episode_files
Esempio n. 6
0
def _get_episode_files(cat, exp):
    episode_files = []
    exp_path = get_experiment_path(cat, exp)
    for episode in list_directories(exp_path):
        episode_dir = join_paths(exp_path, episode)
        if not is_directory(episode_dir):
            continue
        for f in list_directories(episode_dir):
            if f.endswith('.json') or f.endswith('.bson'):
                episode_files.append((f[:-5], join_paths(episode_dir, f)))
    return episode_files