1
0
mirror of https://github.com/gsi-upm/soil synced 2025-08-23 19:52:19 +00:00

Settings modules

This commit is contained in:
Tasio Mendez
2017-04-21 14:04:30 +02:00
parent f29f5fa5bf
commit 2fc7a91ef3
2 changed files with 4 additions and 6 deletions

View File

@@ -1,13 +1,10 @@
import settings
settings.init()
global networkStatus
networkStatus = {} # Dict that will contain the status of every agent in the network
sentimentCorrelationNodeArray=[]
sentimentCorrelationNodeArray = []
for x in range(0, settings.number_of_nodes):
sentimentCorrelationNodeArray.append({'id':x})
sentimentCorrelationNodeArray.append({'id': x})
# Initialize agent states. Let's assume everyone is normal.
init_states = [{'id': 0, } for _ in range(settings.number_of_nodes)]
# add keys as as necessary, but "id" must always refer to that state category