INNER CODE UNIT · Python
prepare_card_profiles
crocs-muni/JCAlgTest · AlgTest_Process/prepare_known_cards.py:26
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')
perffixed_files = get_files_to_process(Path(PERF_FIXED_DIR), '.csv')
perfvariable_files = get_files_to_process(Path(PERF_VARIABLE_DIR), '.csv')
if not os.path.isdir(out_target_dir + '/results/'):
os.mkdir(out_target_dir + '/results/')
transformed_files = {}
with open(input_base_dir + '/' + ATR_NAMES_FILES) as f:
lines = f.readlines()
for line in lines:
line = line.strip()
if len(line) == 0: