(output_folder, exp_name, shape=None, chunk_idx=0)
| 409 | |
| 410 | |
| 411 | def get_dest_path(output_folder, exp_name, shape=None, chunk_idx=0): |
| 412 | dest_folder_root = output_folder + f"{f'_{shape}' if shape is not None else ''}" |
| 413 | os.makedirs(dest_folder_root, exist_ok=True) |
| 414 | fname = f"{exp_name}{f'_{shape}' if shape is not None else ''}_{chunk_idx}.pte" |
| 415 | dest_path = os.path.join(dest_folder_root, fname) |
| 416 | |
| 417 | return dest_path |
| 418 | |
| 419 | |
| 420 | def get_dirname(file_path): |
no outgoing calls
no test coverage detected