From 9bc4bb7533b3c31de6c37c32334a43a7c596a6e0 Mon Sep 17 00:00:00 2001 From: Simon Oehrl <oehrl@vr.rwth-aachen.de> Date: Mon, 9 Mar 2020 16:44:13 +0100 Subject: [PATCH] Add position to nest_neuron table and make attributes an array --- access_node/__main__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/access_node/__main__.py b/access_node/__main__.py index 9a7c567..55a848e 100644 --- a/access_node/__main__.py +++ b/access_node/__main__.py @@ -36,8 +36,8 @@ def SetupNestTables(postgres_username, postgres_password, port): cur.execute(''' CREATE TABLE nest_multimeter ( - id INT PRIMARY KEY NOT NULL UNIQUE, - attribute VARCHAR(50) + id INT PRIMARY KEY NOT NULL UNIQUE, + attributes VARCHAR(50) ARRAY );''') cur.execute(''' @@ -45,6 +45,9 @@ def SetupNestTables(postgres_username, postgres_password, port): id INT PRIMARY KEY NOT NULL UNIQUE, simulation_node_id INT, population_id INT, + position_x FLOAT, + position_y FLOAT, + position_z FLOAT, FOREIGN KEY (simulation_node_id) REFERENCES nest_simulation_node (id) );''') -- GitLab