Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime error, index error, in create_index.go #1

Open
Erfanh1995 opened this issue Aug 1, 2020 · 0 comments
Open

runtime error, index error, in create_index.go #1

Erfanh1995 opened this issue Aug 1, 2020 · 0 comments

Comments

@Erfanh1995
Copy link

  1. Your code does not work on mac because you need an exception for ".DS_Store" file in line 99.
  2. 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())
  3. 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!
@Erfanh1995 Erfanh1995 changed the title runtime error index error in index creator runtime error, index error, in icreate_index.go Aug 1, 2020
@Erfanh1995 Erfanh1995 changed the title runtime error, index error, in icreate_index.go runtime error, index error, in create_index.go Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant