mirror of
https://github.com/gsi-upm/soil
synced 2024-11-14 15:32:29 +00:00
Settings modules
This commit is contained in:
parent
f29f5fa5bf
commit
2fc7a91ef3
@ -1,8 +1,5 @@
|
|||||||
import settings
|
import settings
|
||||||
|
|
||||||
settings.init()
|
|
||||||
|
|
||||||
global networkStatus
|
|
||||||
networkStatus = {} # Dict that will contain the status of every agent in the network
|
networkStatus = {} # Dict that will contain the status of every agent in the network
|
||||||
|
|
||||||
sentimentCorrelationNodeArray = []
|
sentimentCorrelationNodeArray = []
|
||||||
|
3
soil.py
3
soil.py
@ -27,7 +27,8 @@ if settings.network_type == 2:
|
|||||||
##############
|
##############
|
||||||
|
|
||||||
sim = NetworkSimulation(topology=G, states=init_states, agent_type=ControlModelM2,
|
sim = NetworkSimulation(topology=G, states=init_states, agent_type=ControlModelM2,
|
||||||
max_time=settings.max_time, num_trials=settings.num_trials, logging_interval=1.0)
|
max_time=settings.max_time, num_trials=settings.num_trials, logging_interval=1.0,
|
||||||
|
environment_params=settings)
|
||||||
|
|
||||||
sim.run_simulation()
|
sim.run_simulation()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user