Find all model directories matching the model name, including -trialN suffixes.
(results_dir: Path, model: str)
| 47 | |
| 48 | |
| 49 | def tp_from_dir(results_dir: Path) -> int: |
| 50 | """Parse the TP value out of the results dir name (e.g. ...-tp2). Defaults to 1.""" |
| 51 | m = re.search(r"-tp(\d+)(?:[-_].*)?$", results_dir.name) |
| 52 | return int(m.group(1)) if m else 1 |
| 53 | |
| 54 | |
| 55 | def resolve_model_dirs(results_dir: Path, model: str) -> list[Path]: |
no outgoing calls
no test coverage detected