| 43 | |
| 44 | |
| 45 | def parse_args(): |
| 46 | parser = argparse.ArgumentParser(description=__doc__) |
| 47 | parser.add_argument("--dir", required=True, help="Directory with bszN/ subdirs") |
| 48 | parser.add_argument( |
| 49 | "--method", |
| 50 | default="all", |
| 51 | choices=list(METHOD_FILENAMES.keys()) + ["all"], |
| 52 | help="Which method to plot (default: all)", |
| 53 | ) |
| 54 | parser.add_argument("--fmt", default="png", help="Output image format (default: png)") |
| 55 | return parser.parse_args() |
| 56 | |
| 57 | |
| 58 | def load_method(base: Path, bsz_dirs: list[Path], method: str) -> pd.DataFrame: |