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

feat!: scenario path management #61

Merged
merged 10 commits into from
Jul 28, 2022
Merged

Conversation

leo-desbureaux-tellae
Copy link
Contributor

@leo-desbureaux-tellae leo-desbureaux-tellae commented Jul 28, 2022

  • 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

@leo-desbureaux-tellae leo-desbureaux-tellae changed the title feat: scenario path management feat!: scenario path management Jul 28, 2022

# 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

Assignment overwrites attribute environment, which was previously defined in superclass [SimulationModel](1).

# 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

Assignment overwrites attribute environment, which was previously defined in superclass [SimulationModel](1).

# 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

Assignment overwrites attribute environment, which was previously defined in superclass [SimulationModel](1).
@leo-desbureaux-tellae leo-desbureaux-tellae merged commit ccc6bb2 into main Jul 28, 2022
@leo-desbureaux-tellae leo-desbureaux-tellae deleted the feature/scenario_class branch July 28, 2022 14:22
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