@@ -123,9 +123,9 @@ def get_virtual_cells(self, population, node_id, spike_trains):
123123 self ._virtual_nodes [population ][node_id ] = virt_cell
124124 return virt_cell
125125
126- def _build_cell (self , bionode ):
126+ def _build_cell (self , bionode , population_name ):
127127 if bionode .model_type in self ._model_type_map :
128- cell = self ._model_type_map [bionode .model_type ](bionode , self )
128+ cell = self ._model_type_map [bionode .model_type ](bionode , population_name = population_name , bionetwork = self )
129129 self ._rank_nodes_by_model [bionode .model_type ][cell .gid ] = cell
130130 return cell
131131 else :
@@ -142,7 +142,7 @@ def build_nodes(self):
142142 node_ids_map = {}
143143 if node_pop .internal_nodes_only :
144144 for node in node_pop [MPI_rank ::MPI_size ]:
145- cell = self ._build_cell (node )
145+ cell = self ._build_cell (bionode = node , population_name = node_pop . name )
146146 node_ids_map [node .node_id ] = cell
147147 self ._rank_node_gids [cell .gid ] = cell
148148
@@ -154,8 +154,10 @@ def build_nodes(self):
154154 if node .model_type == 'virtual' :
155155 continue
156156 else :
157- cell = self ._build_cell (node )
157+ cell = self ._build_cell (bionode = node , population_name = node_pop . name )
158158 node_ids_map [node .node_id ] = cell
159+
160+
159161 self ._rank_node_gids [cell .gid ] = cell
160162
161163 elif node_pop .virtual_nodes_only :
0 commit comments