Skip to content

feat: EditConfig script #286

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

Merged
merged 3 commits into from
Jan 8, 2025
Merged

feat: EditConfig script #286

merged 3 commits into from
Jan 8, 2025

Conversation

tkchouaki
Copy link
Collaborator

This PR proposes the org.eqasim.core.scenario.config.EditConfig script that allows allows to edit a MATSim configuration file exclusively through the command line.

While existing modules can be configured in most simulation running scripts using the config: prefix, existing modules cannot be removed and non-existing ones cannot be added. This is what this script allows to do.

The script can be used with the following command line arguments:

  • input-path: required
  • output-path: required
  • optional arguments in the form add-module:moduleName add the given module to the config. Module config groups matching the provided names are searched in the core modules and the optional modules specified by an EqasimConfigurator
  • optional arguments in the form remove-module:moduleName remove the given module from the config
  • eqasim-configurator the full name of a class extending the EqasimConfigurator class from which optional modules config groups are retrieved

After adding and removing modules, configuration elements can still be adapted using the config: prefix.

@tkchouaki tkchouaki merged commit c7a9346 into develop Jan 8, 2025
1 check passed
@tkchouaki tkchouaki deleted the featEditConfig branch January 8, 2025 04:42
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

Successfully merging this pull request may close these issues.

1 participant