Add debug logging for empty-column-removal
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 43s
CI / test-go-edu-search (push) Successful in 54s
CI / test-python-klausur (push) Failing after 2m53s
CI / test-python-agent-core (push) Successful in 39s
CI / test-nodejs-website (push) Successful in 39s
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 43s
CI / test-go-edu-search (push) Successful in 54s
CI / test-python-klausur (push) Failing after 2m53s
CI / test-python-agent-core (push) Successful in 39s
CI / test-nodejs-website (push) Successful in 39s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1736,6 +1736,17 @@ async def _build_grid_core(
|
|||||||
if fixed != text:
|
if fixed != text:
|
||||||
cell["text"] = fixed
|
cell["text"] = fixed
|
||||||
|
|
||||||
|
# --- Debug: log cell counts per column before empty-column removal ---
|
||||||
|
for z in zones_data:
|
||||||
|
if z.get("zone_type") == "content":
|
||||||
|
from collections import Counter as _Counter
|
||||||
|
_cc = _Counter(c.get("col_index") for c in z.get("cells", []))
|
||||||
|
_cols = z.get("columns", [])
|
||||||
|
logger.info(
|
||||||
|
"pre-empty-col-removal zone %d: %d cols, cells_per_col=%s",
|
||||||
|
z.get("zone_index", 0), len(_cols), dict(sorted(_cc.items())),
|
||||||
|
)
|
||||||
|
|
||||||
# --- Remove empty columns (no cells assigned) ---
|
# --- Remove empty columns (no cells assigned) ---
|
||||||
for z in zones_data:
|
for z in zones_data:
|
||||||
cells = z.get("cells", [])
|
cells = z.get("cells", [])
|
||||||
|
|||||||
Reference in New Issue
Block a user