Skip to content

Fix metric units in CLI eval output and template field names#166

Merged
PunchTheDev merged 1 commit into
mainfrom
punch/fix-cli-unit-display
Jun 3, 2026
Merged

Fix metric units in CLI eval output and template field names#166
PunchTheDev merged 1 commit into
mainfrom
punch/fix-cli-unit-display

Conversation

@PunchTheDev
Copy link
Copy Markdown
Owner

Summary

Two miner-facing bugs in the same category — wrong or misleading field references.

Changes

  • cli.py _run_evaluate verbose output: hardcoded :.2f}g_fmt_score(score, metric) so stiffness (N/(mm·g)) and deflection (mm) rounds display correct units
  • cli.py _print_summary_table: same fix — score column now uses _fmt_score keyed by score_metric from the eval result
  • agents/template/agent.py docstring: load_nload_newtons, spec["safety_factor"]spec["constraints"]["safety_factor"], "volume_mm3" → correct metric names (stiffness_to_weight | deflection_mm)

@PunchTheDev PunchTheDev merged commit 4d895e8 into main Jun 3, 2026
1 check passed
@PunchTheDev PunchTheDev deleted the punch/fix-cli-unit-display branch June 3, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant