summaryrefslogtreecommitdiff
path: root/line-conf-buckets/line-conf-buckets.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-01-24 00:13:33 +0000
committerNick White <git@njw.name>2019-01-24 00:13:33 +0000
commit55a93a583ad41693166d176abd908d0aa2e85784 (patch)
treeb2f1b49180ed927259426bffb6b678c943d4216f /line-conf-buckets/line-conf-buckets.go
parentd70a6961d3ac5f0c8db59a12716079e3af84b46c (diff)
Get -tess tool to use generic bucket functions too. things are in pretty good shape now, just a few small todos left
Diffstat (limited to 'line-conf-buckets/line-conf-buckets.go')
-rw-r--r--line-conf-buckets/line-conf-buckets.go8
1 files changed, 5 insertions, 3 deletions
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)