Skip to content

convert_raw_ngsim: Multiple directories in .julia/packages/NGSIM #13

Description

@raunakbh92

To update the NGSIM repo following @djp42 changes, I did the following

julia
    ] update NGSIM

This resulted in a new folder being created in .julia/packages/NGSIM called 90YUa. I did not delete the old folder called B54UX.

Now, when I go for convert_raw_trajectories using the following

julia
   using NGSIM
   convert_raw_ngsim_to_trajdatas()

I get the error:

julia> convert_raw_ngsim_to_trajdatas()
converting i101_trajectories-0750am-0805am.txt
loading from file: ERROR: AssertionError: isfile(input_path)
Stacktrace:
 [1] NGSIMTrajdata(::String) at /home/raunak/.julia/packages/NGSIM/9OYUa/src/ngsim_trajdata.jl:32
 [2] #load_ngsim_trajdata#35(::Bool, ::Function, ::String) at /home/raunak/.julia/packages/NGSIM/9OYUa/src/trajdata.jl:146
 [3] load_ngsim_trajdata at /home/raunak/.julia/packages/NGSIM/9OYUa/src/trajdata.jl:145 [inlined]
 [4] convert_raw_ngsim_to_trajdatas() at /home/raunak/.julia/packages/NGSIM/9OYUa/src/trajdata.jl:200
 [5] top-level scope at none:0

The reason is

julia> joinpath(@__DIR__, "../data/i101_trajectories-0750am-0805am.txt")
"/home/raunak/.julia/packages/NGSIM/B45UX/data/../data/i101_trajectories-0750am-0805am.txt"

The problem is it still looks in the old B45UX folder. I know that manually deleting the old folder is a solution but wanted to check if there's a better one.

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