From d157a5e0b51b320e11333d4b11f769d8cefd277d Mon Sep 17 00:00:00 2001 From: cif2cif Date: Sat, 28 Jan 2017 17:14:58 +0100 Subject: [PATCH] added JSON format --- soil_tutorial.ipynb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/soil_tutorial.ipynb b/soil_tutorial.ipynb index 5e11d00..3625a3d 100644 --- a/soil_tutorial.ipynb +++ b/soil_tutorial.ipynb @@ -185,6 +185,29 @@ "source": [ "In order to analyse the results of the simulation. We include them in the topology and a .gexf file is generated. This allows the user to picture the network in [Gephi](https://gephi.org/). A JSON file is also generated to permit further analysis.\n", "\n", + "The JSON file follows this schema. The file has three depth levels. In the first one we can find the identifier of each agent in the network. Secondly, inside every agent we can observe every attribute that the creator of the model wanted to make visible. In the deepest level the different values of each attribute are\n", + "visible.\n", + "\n", + "\t{\n", + "\t\t\"agent_0\": {\n", + "\t\t\t\"attribute_X\": {\n", + "\t\t\t\t\"0\": 0,\n", + "\t\t\t\t\"2\": 0,\n", + "\t\t\t\t\"4\": 1,\n", + "\t\t\t\t\"6\": 2,\n", + "\t\t\t\t...\n", + "\t\t\t}\n", + "\t\t},\n", + "\t\t\"agent_1\": {\n", + "\t\t\t\"attribute_X\": {\n", + "\t\t\t\t\"0\": 0,\n", + "\t\t\t\t\"2\": 3,\n", + "\t\t\t\t...\n", + "\t\t\t}\n", + "\t\t},\n", + "\t\t...\t\t\n", + "\t}\n", + "\n", "This is done with the following code:" ] },