-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat!: scenario path management #61
Conversation
leo-desbureaux-tellae
commented
Jul 28, 2022
•
edited
Loading
edited
- new SimulationScenario class replacing SimulationParameters, manages scenario folders and data
- changed signature of functions to accept a scenario folder path. Scenario path is no longer computed from the model code and scenario name
- BREAKING CHANGE: now provide path to the scenario folder instead of path to the simulation parameters to run a simulation
changed SimulationModel 'parameters' attribute in 'scenario'
…it to starling_sim/
* affected functions: scenario_input_folder, scenario_output_folder, scenario_parameters_filepath, scenario_agent_input_filepath * use os.path.join to create paths
… simulation parameters to run a simulation
|
||
# elements of the model | ||
self.agentPopulation = DictPopulation(self.agent_type_class.keys()) | ||
self.environment = Environment(self.parameters) | ||
self.environment = Environment(self.scenario) |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class
|
||
# elements of the model | ||
self.agentPopulation = DictPopulation(self.agent_type_class.keys()) | ||
self.environment = Environment(self.parameters) | ||
self.environment = Environment(self.scenario) |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class
|
||
# elements of the model | ||
self.agentPopulation = DictPopulation(self.agent_type_class.keys()) | ||
self.environment = Environment(self.parameters) | ||
self.environment = Environment(self.scenario) |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class