Remove DEBUG prints from ascii primitive

This commit is contained in:
gilesb
2026-01-20 09:34:13 +00:00
parent e3c6163e2e
commit 45f9171701
2 changed files with 4 additions and 25 deletions

View File

@@ -261,11 +261,6 @@ def _apply_cell_effect(cell_img, zone, cell_effect, interp, env, extra_params):
# Inject loaded effects as callable functions
if hasattr(interp, 'effects'):
# Debug: print what effects are available on first cell
if zone.get('row', 0) == 0 and zone.get('col', 0) == 0:
import sys
print(f"DEBUG: Available effects in interp: {list(interp.effects.keys())}", file=sys.stderr)
for effect_name in interp.effects:
def make_effect_fn(name):
def effect_fn(frame, *args):
@@ -294,18 +289,6 @@ def _apply_cell_effect(cell_img, zone, cell_effect, interp, env, extra_params):
return effect_fn
cell_env.set(effect_name, make_effect_fn(effect_name))
# Debug: verify bindings
if zone.get('row', 0) == 0 and zone.get('col', 0) == 0:
import sys
print(f"DEBUG: cell_env bindings: {list(cell_env.bindings.keys())}", file=sys.stderr)
print(f"DEBUG: 'rotate' in cell_env.bindings: {'rotate' in cell_env.bindings}", file=sys.stderr)
print(f"DEBUG: cell_env.has('rotate'): {cell_env.has('rotate')}", file=sys.stderr)
# Check Symbol class identity
print(f"DEBUG: cell_effect.body = {cell_effect.body}", file=sys.stderr)
if hasattr(cell_effect, 'body') and isinstance(cell_effect.body, list) and cell_effect.body:
head = cell_effect.body[0]
print(f"DEBUG: head = {head}, type = {type(head)}, module = {type(head).__module__}", file=sys.stderr)
# Bind cell image and zone dict
cell_env.set('cell', cell_img)
cell_env.set('zone', zone)