Enhancements to SimulationTester and Main Function with Config Flexibility #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enhancements to SimulationTester and Main Function with Config Flexibility
Description
This pull request introduces several enhancements to the
SimulationTester
class and themain
function used in the simulation framework. The key changes are as follows:1. SimulationTester Class Enhancements:
run_multiple_simulations
method.config_file
parameter in both the__init__
method andrun_simulation
method of theSimulationTester
class. This allows users to specify a json file for the simulation, enhancing flexibility and customization of the simulation runs.print_results
method to not only print the simulation results to the console but also write them to a CSV file. This file is stored in a directory specified byconfig.simulation_dir
.2. Main Function Modification:
main
function to support dynamic import of theBaselineConfig
class based on an optionalconfig_file
parameter. This change allows the function to adapt to different configuration needs, improving the usability of the simulation framework for various scenarios.These enhancements aim to increase the versatility and user-friendliness of the simulation framework, providing more options for configuration and output handling.
Additional Notes
baseline_run
and other dependent functions/modules are compatible with these enhancements.