| """Generate the high-level within-C report.""" | |
| import argparse | |
| from pathlib import Path | |
| from analysis.letters_reports import generate_letter | |
| LETTER = "C" | |
| def generate( | |
| results_dir, | |
| protocols=(), | |
| output_dir=None, | |
| spatial_codes_dir=None, | |
| profile_path=None, | |
| ): | |
| return generate_letter( | |
| LETTER, results_dir, protocols, output_dir, spatial_codes_dir, profile_path | |
| ) | |
| def main(): | |
| p = argparse.ArgumentParser(description="Generate the high-level within-C report.") | |
| p.add_argument("--results-dir", default="/root/results/C") | |
| p.add_argument("--protocol", action="append", default=[]) | |
| p.add_argument("--output-dir", default="/workspace/reports") | |
| p.add_argument("--spatial-codes-dir", default=None) | |
| a = p.parse_args() | |
| result = generate(a.results_dir, a.protocol, a.output_dir, a.spatial_codes_dir) | |
| print(f"wrote {result['path']}") | |
| if __name__ == "__main__": | |
| main() | |