Skip to content

Bug: Interaction between simulation file path and results directory #217

@carlaKC

Description

@carlaKC

Describe the bug

If you run the simulator with two relative paths, it'll look for the simulation file in the data dir rather than the path provided and fail:

sim-cli --clock-speedup 1000 -s "lvl_acinq/simln_peacetime.json" -d "lvl_acinq/peacetime/"

[sim_cli::parsing] Simulation file 'lvl_acinq/peacetime/lvl_acinq/simln_peacetime.json' does not exist.
Error: no simulation files found in /Users/carla/Work/jam-ln/data/lvl_acinq/peacetime.

We should check whether we've got a simfile first and only fall back to the dir if it's not specified.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions