Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

over-ride not always required in Bitsim #107

Open
fredshone opened this issue Apr 20, 2021 · 1 comment
Open

over-ride not always required in Bitsim #107

fredshone opened this issue Apr 20, 2021 · 1 comment

Comments

@fredshone
Copy link
Collaborator

Bitsim requires a partial override of paths:

Currently by passing --path_override to the elara.run command elara with overwrite all input paths.

For example for given config:

[inputs]
events = "./tests/test_fixtures/output_events.xml"
network = "./tests/test_fixtures/output_network.xml"
transit_schedule = "./tests/test_fixtures/output_transitSchedule.xml"
transit_vehicles = "./tests/test_fixtures/output_transitVehicles.xml"
attributes = "./tests/test_fixtures/output_personAttributes.xml"
plans= "./tests/test_fixtures/output_plans.xml"
output_config_path = "./tests/test_fixtures/output_config.xml"
road_pricing = "./tests/test_fixtures/roadpricing.xml"

running elara run config.toml --path_override example/new_directory will effectivelly modify the read paths as follows:

[inputs]
events = "example/new_directory/output_events.xml"
network = "example/new_directory/output_network.xml"
transit_schedule = "example/new_directory/output_transitSchedule.xml"
transit_vehicles = "example/new_directory/output_transitVehicles.xml"
attributes = "example/new_directory/output_personAttributes.xml"
plans= "example/new_directory/output_plans.xml"
output_config_path = "example/new_directory/output_config.xml"
road_pricing = "example/new_directory/roadpricing.xml"

This is desired behaviour in many use cases.

However, when used as part of a bitsim swarm, this assumes that all paths need to be updated to the latest swarm outputs. In fact we generally do not want to update the path for road_pricing as this is a non-standard matsim input and not a matsim output.

A suggestion is to implement a --bitsim_path_override option that selectivelly updates paths for bitsim.

@fredshone
Copy link
Collaborator Author

... or even an ebtirelly unique elara bitsim command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant