From aa5a11abdf83502ba87d5b004601cd683dc02cd0 Mon Sep 17 00:00:00 2001 From: gravermistakes Date: Mon, 19 Oct 2026 20:42:01 -0700 Subject: [PATCH] M3b: parse native bandit output without literal indentation --- core/src/economy/sims/sociological/runner.tcl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/economy/sims/sociological/runner.tcl b/core/src/economy/sims/sociological/runner.tcl index 1b92241..e685576 100644 --- a/core/src/economy/sims/sociological/runner.tcl +++ b/core/src/economy/sims/sociological/runner.tcl @@ -211,9 +211,7 @@ oo::class create ::stomach::SociologicalRunner { printf("BANDIT %%w %%w %%w %%w %%w%%n",[A,B,C,D,E]) } [my _list_fmt $shares] [my _list_fmt $reward_sums] [my _list_fmt $counts] $total] set output [exec $runtime -b $engine -e $goal] - if {![regexp { - BANDIT[[:space:]]+([-+0-9.eE]+)[[:space:]]+([-+0-9.eE]+)[[:space:]]+([-+0-9.eE]+)[[:space:]]+([-+0-9.eE]+)[[:space:]]+([-+0-9.eE]+) - } $output -> a b cc d e]} { + if {![regexp {BANDIT[[:space:]]+([-+0-9.eE]+)[[:space:]]+([-+0-9.eE]+)[[:space:]]+([-+0-9.eE]+)[[:space:]]+([-+0-9.eE]+)[[:space:]]+([-+0-9.eE]+)} $output -> a b cc d e]} { error "invalid_bandit_output" } set next [my _normalize [list [expr {double($a)}] [expr {double($b)}] [expr {double($cc)}] [expr {double($d)}] [expr {double($e)}]]]