Skip to content

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

Description

@Erfanh1995
  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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions