about summary refs log tree commit diff
path: root/main.go
diff options
context:
space:
mode:
authoremile <hanemile@protonmail.com>2018-10-08 17:20:34 +0200
committeremile <hanemile@protonmail.com>2018-10-08 17:20:34 +0200
commitd1ab3a4384d30039be6a3a7800240d5480d93987 (patch)
treee2317b79bceaa705984e26539ecc9e26cbf91b83 /main.go
parent244477770aa7a97f2dbdd113133defdb299a6013 (diff)
Handle reading data from external CSV files
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index 454abe5..0cdd637 100644
--- a/main.go
+++ b/main.go
@@ -1,6 +1,7 @@
 package main
 
 import (
+	"./csv"
 	"./draw"
 	"./forces"
 	"./structs"
@@ -14,6 +15,8 @@ func main() {
 		{structs.Coord{X: 100, Y: 500}, structs.Force{0, 0}, 1000},
 	}
 
+	csv.Import("data/structure03.ita.uni-heidelberg.de_26635.csv", 0, 4000, starsSlice)
+
 	forces.CalcAllForces(starsSlice)
 	draw.Slice(starsSlice, "out.png")
 }