Skip to content

Issue with convert_raw_ngsim_to_trajdatas() #11

Description

@karenacai

Hello,

I have cloned all the necessary packages that were listed in the installation directions. When I try to run the command convert_raw_ngsim_to_trajdatas(), I get the following error:

ERROR: SystemError: opening file /home/karena/.julia/v0.6/NGSIM/data/trajdata_/home/karena/.julia/v0.6/NGSIM/data/i101_trajectories-0750am-0805am.txt: No such file or directory

This error came from line 206 of trajdata.jl, which is the following:
open(io->write(io, MIME"text/plain"(), trajdata), outpath, "w")
where outpath is defined in line 205
outpath = Pkg.dir("NGSIM", "data", "trajdata_"*filename)

I am relatively new to Julia, but it seems as though the outpath given by the file in the error message (/home/karena/.julia/v0.6/NGSIM/data/trajdata_/home/karena/.julia/v0.6/NGSIM/data/i101_trajectories-0750am-0805am.txt) does not exist and it must exist for the open command in Julia to work.

Am I right to say the intention of line 206 is to output the trajdata into an output file with a specific file format that can be inputted into the AutomotiveDrivingModels.jl program? What might I be doing wrong? Thanks in advance!

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