diff options
author | emile <hanemile@protonmail.com> | 2018-10-08 17:26:00 +0200 |
---|---|---|
committer | emile <hanemile@protonmail.com> | 2018-10-08 17:26:00 +0200 |
commit | ff38efae6116b1d1845d1f5c02ed977934c64ac6 (patch) | |
tree | 6335e7e3deccd0792155d13bfb9b20611ee01c77 | |
parent | 02f224459476d45ef31a8ed344aba1dd810e2607 (diff) |
Basic logging
-rw-r--r-- | main.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/main.go b/main.go index 0cdd637..43240ef 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "./draw" "./forces" "./structs" + "fmt" ) func main() { @@ -15,8 +16,15 @@ 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) + fmt.Printf("%-60s", "Opening the csv") + starsSlice = csv.Import("data/structure03.ita.uni-heidelberg.de_26635.csv", 0, 4000, starsSlice) + fmt.Printf("Done\n") + fmt.Printf("%-60s", "Calculate the forces") forces.CalcAllForces(starsSlice) + fmt.Printf("Done\n") + + fmt.Printf("%-60s", "Plotting the stars") draw.Slice(starsSlice, "out.png") + fmt.Printf("Done\n") } |