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

Function planned_items

scripts/plan_figure_table_decisions.py:88–101  ·  view source on GitHub ↗
(figures_wrapper: dict[str, Any])

Source from the content-addressed store, hash-verified

86
87
88def planned_items(figures_wrapper: dict[str, Any]) -> dict[str, dict[str, Any]]:
89 figure_plan = (
90 figures_wrapper.get("figure_plan", {})
91 if isinstance(figures_wrapper.get("figure_plan"), dict)
92 else {}
93 )
94 planned: dict[str, dict[str, Any]] = {}
95 for item in figure_plan.get("figures", []) or []:
96 if not isinstance(item, dict):
97 continue
98 label = normalize_whitespace(str(item.get("id", "")))
99 if label:
100 planned[normalize_label(label)] = item
101 return planned
102
103
104def quality_status(plan_item: dict[str, Any]) -> str:

Callers 1

build_decisionsFunction · 0.85

Calls 2

normalize_whitespaceFunction · 0.90
normalize_labelFunction · 0.85

Tested by

no test coverage detected