Throttle goroutines and unflushed bufs to NCPUs.
[lightning.git] / pca.go
diff --git a/pca.go b/pca.go
index 044a7eefdfe9d36a2b4bfabfe3d148b5244f2fb3..0248fa557090d580873430d8ef0e60cb04b03222 100644 (file)
--- a/pca.go
+++ b/pca.go
@@ -1,4 +1,4 @@
-package main
+package lightning
 
 import (
        "bufio"
@@ -162,7 +162,7 @@ func (cmd *goPCA) RunCommand(prog string, args []string, stdin io.Reader, stdout
        tilelib.Tidy()
 
        log.Print("converting cgs to array")
-       data, rows, cols := cgs2array(tilelib)
+       data, rows, cols, _ := cgs2array(tilelib)
        if *onehot {
                log.Printf("recode one-hot: %d rows, %d cols", rows, cols)
                data, _, cols = recodeOnehot(data, cols)