()
| 209 | |
| 210 | |
| 211 | def main() -> None: |
| 212 | args = parser().parse_args() |
| 213 | source_manifest = load_record(args.source_manifest) |
| 214 | figures = load_record(args.figures) if args.figures else {} |
| 215 | _assets = load_record(args.assets) if args.assets else {} |
| 216 | decisions = build_decisions(source_manifest, figures) |
| 217 | payload = { |
| 218 | "status": "ok", |
| 219 | "script": "plan_figure_table_decisions.py", |
| 220 | "paper_id": args.paper_id or source_manifest.get("paper_id", ""), |
| 221 | "decisions": decisions, |
| 222 | "summary": { |
| 223 | "total_items": len(decisions), |
| 224 | "by_decision": { |
| 225 | value: sum(1 for item in decisions if item.get("decision") == value) |
| 226 | for value in sorted(DECISION_VALUES) |
| 227 | }, |
| 228 | }, |
| 229 | } |
| 230 | emit(payload, args.output) |
| 231 | |
| 232 | |
| 233 | if __name__ == "__main__": |
no test coverage detected