INNER CODE UNIT · Python

get_files_to_process

crocs-muni/JCAlgTest · AlgTest_Process/prepare_known_cards.py:13

def get_files_to_process(walk_dir: Path, required_extension: str):
    files_to_process = []
    for file_name in search_files(walk_dir):
        if not os.path.isfile(file_name):
            continue
        file_ext = file_name[file_name.rfind('.'):]
        if file_ext.lower() != required_extension:
            continue
        files_to_process.append(file_name)

    return files_to_process


def prepare_card_profiles(input_base_dir: str, out_target_dir: str):
    ALGSUPPORT_DIR = input_base_dir + '/results/'
    PERF_FIXED_DIR = input_base_dir + '/performance/fixed/'
    PERF_VARIABLE_DIR = input_base_dir + '/performance/variable/'
    algsupport_files = get_files_to_process(Path(ALGSUPPORT_DIR), '.csv')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…