From 0030b589a9752a841ea9fa4dda7b8208b7072bcf Mon Sep 17 00:00:00 2001 From: Jonas Knobloch Date: Sun, 28 Jun 2026 01:28:55 +0200 Subject: Add flags to import context --- research/lesci/cmd/lesci/main.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'research/lesci/cmd') diff --git a/research/lesci/cmd/lesci/main.go b/research/lesci/cmd/lesci/main.go index bfabfe8..e9c9a99 100644 --- a/research/lesci/cmd/lesci/main.go +++ b/research/lesci/cmd/lesci/main.go @@ -20,6 +20,9 @@ func main() { outPath := flag.String("o", "", "") + goldData := flag.String("gold-data", "", "gold data") + goldStep := flag.Int("gold-step", 0, "gold step") + dry := flag.Bool("dry", false, "") flag.Parse() @@ -54,16 +57,18 @@ func main() { o := path.Join(shelf.Abs(shelf.Item(*outPath)), path.Base(shelf.Abs(shelf.Item(modelPath))), *chkpt) - exptOpts := lesci.Options{ + expOpts := lesci.Options{ ForceContext: false, ForceExtract: true, + GoldDataName: *goldData, + GoldDataStep: *goldStep, } expCfg := lesci.ConfigDefault() expCfg.ClampRulesBeforeFilter = true - e := must(lesci.NewExperiment(m, t, c, d, o, 50256, 5000, expCfg, exptOpts)) + e := must(lesci.NewExperiment(m, t, c, d, o, 50256, 5000, expCfg, expOpts)) if err := m.Init(); err != nil { log.Fatal(err) -- cgit v1.3.1