MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / main

Function main

scripts/plan_figure_table_decisions.py:211–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209
210
211def 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
233if __name__ == "__main__":

Callers 1

Calls 4

emitFunction · 0.90
build_decisionsFunction · 0.85
parserFunction · 0.70
load_recordFunction · 0.70

Tested by

no test coverage detected