From 55a93a583ad41693166d176abd908d0aa2e85784 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 24 Jan 2019 00:13:33 +0000 Subject: Get -tess tool to use generic bucket functions too. things are in pretty good shape now, just a few small todos left --- line-conf-buckets/line-conf-buckets.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'line-conf-buckets') diff --git a/line-conf-buckets/line-conf-buckets.go b/line-conf-buckets/line-conf-buckets.go index bc4a1aa..915b2b4 100644 --- a/line-conf-buckets/line-conf-buckets.go +++ b/line-conf-buckets/line-conf-buckets.go @@ -1,5 +1,8 @@ package main +// TODO: rename this emphasising that it's for .prob/ocropy +// TODO: set bucket dirname from cmdline + import ( "bufio" "flag" @@ -11,7 +14,7 @@ import ( "git.rescribe.xyz/testingtools/parse/prob" ) -func lineDetails(f string) (parse.LineDetails, error) { +func detailsFromFile(f string) (parse.LineDetails, error) { var newlines parse.LineDetails file, err := os.Open(f) @@ -41,7 +44,7 @@ func main() { lines := make(parse.LineDetails, 0) for _, f := range flag.Args() { - newlines, err := lineDetails(f) + newlines, err := detailsFromFile(f) if err != nil { log.Fatal(err) } @@ -57,7 +60,6 @@ func main() { { 0.98, "98plus" }, } - // TODO: set bucket dirname from cmdline stats, err := parse.BucketUp(lines, b, "newbuckets") if err != nil { log.Fatal(err) -- cgit v1.2.1-24-ge1ad