Skip to content

Issue reading commandline input data #52

@StephanieKemna

Description

@StephanieKemna

Following instructions, if you try (for example):

trafficgen gen-situation -s test_tg\data\baseline_situations_input -os test_tg\data\own_ship\own_ship.json -t test_tg\data\target_ships -c test_tg\encounter_settings.json -o test_tg/output/

or

trafficgen gen-situation -s ..\..\..\..\ship-traffic-generator\data\baseline_situations_input -os ..\..\..\..\ship-traffic-generator\data\own_ship\own_ship.json -t ..\..\..\..\ship-traffic-generator\data\target_ships -c ..\..\..\..\ship-traffic-generator\src\trafficgen\settings\encounter_settings.json -o test_tg/

then it will bomb with an error such as

FileNotFoundError: [Errno 2] No such file or directory: 'data\\target_ships\\data\\target_ships\\target_ship_1.json'

It seems the target ship folder is not read / composed properly. Should check & fix.
(With all default paths in a checked-out repo work, it works ok)

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions