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!
The text was updated successfully, but these errors were encountered:
Erfanh1995
changed the title
runtime error index error in index creator
runtime error, index error, in icreate_index.go
Aug 1, 2020
Erfanh1995
changed the title
runtime error, index error, in icreate_index.go
runtime error, index error, in create_index.go
Aug 1, 2020
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!
The text was updated successfully, but these errors were encountered: