Skip to content

Commit f7febe8

Browse files
sbryngelsonclaude
andcommitted
Display physics warnings in ./mfc.sh validate output
The validate command was discarding the warnings list returned by CaseValidator.validate(). Now warnings are shown with yellow formatting alongside the per-stage constraint results. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4f41b3f commit f7febe8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

toolchain/mfc/validate.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@ def validate():
3434
for stage in stages:
3535
try:
3636
validator = CaseValidator(case.params)
37-
validator.validate(stage)
38-
cons.print(f"[bold green]✓[/bold green] {stage} constraints passed")
37+
warnings = validator.validate(stage)
38+
if warnings:
39+
cons.print(f"[bold green]✓[/bold green] {stage} constraints passed (with warnings)")
40+
for warning in warnings:
41+
cons.print(f" [yellow]⚠ {warning}[/yellow]")
42+
else:
43+
cons.print(f"[bold green]✓[/bold green] {stage} constraints passed")
3944
except CaseConstraintError as e:
4045
all_passed = False
4146
cons.print(f"[bold yellow]![/bold yellow] {stage} constraints: issues found")

0 commit comments

Comments
 (0)