We need a way to get a dict of variables into the thresh namespace to help us in doing asserts. Maybe something like this:
$ cat vars.json
{
"density_gold": 123.456
}
$ thresh preload=vars.json A=data.txt cat "errors=density_gold-Adensity" assert "max(errors) < 1.0e-6"