You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your code does not work on mac because you need an exception for ".DS_Store" file in line 99.
Also lines 103 and 104 should be changed to the following:
fmt.Println(os.Args[1]+"/"+f.Name()+" trip ID: "+trip_id_str)
file, _ := os.Open(os.Args[1]+"/"+f.Name())
finally the part bellow:
if len(gps_trace) == 0 {
fmt.Println("Warning, Trip is too short")
continue
}
should come before line 138 otherwise if the trip is indeed too short you will get an index error before even printing that statement!
fmt.Println(os.Args[1]+"/"+f.Name()+" trip ID: "+trip_id_str)
file, _ := os.Open(os.Args[1]+"/"+f.Name())
if len(gps_trace) == 0 {
fmt.Println("Warning, Trip is too short")
continue
}
should come before line 138 otherwise if the trip is indeed too short you will get an index error before even printing that statement!