Skip to content

preload json file into the namespace #6

@sswan

Description

@sswan

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions