2121 accuracy to gain performance.
2222"""
2323import os
24- from typing import Optional , Tuple
24+ from typing import Any , Dict , Optional , Tuple
2525from spinn_utilities .socket_address import SocketAddress
2626from spinnman .messages .eieio import EIEIOType
2727from spinn_front_end_common .abstract_models import (
@@ -206,7 +206,8 @@ def EthernetControlPopulation(
206206 n_neurons : int , model : _CellTypeArg , label : Optional [str ] = None ,
207207 local_host : Optional [str ] = None , local_port : Optional [int ] = None ,
208208 database_notify_port_num : Optional [int ] = None ,
209- database_ack_port_num : Optional [int ] = None ) -> Population :
209+ database_ack_port_num : Optional [int ] = None ,
210+ ** additional_kwargs : Dict [str , Any ]) -> Population :
210211 # pylint: disable=invalid-name
211212 """
212213 Create a PyNN population that can be included in a network to
@@ -226,6 +227,8 @@ def EthernetControlPopulation(
226227 :param database_notify_port_num:
227228 The optional port to which notifications from the database
228229 notification protocol are to be sent
230+ :param additional_kwargs:
231+ A nicer way of allowing additional things to the Population
229232 :return:
230233 A pyNN Population which can be used as the target of a Projection.
231234
@@ -235,7 +238,8 @@ def EthernetControlPopulation(
235238 :raises TypeError: If an invalid model class is used.
236239 """
237240 # pylint: disable=global-statement
238- population = Population (n_neurons , model , label = label )
241+ population = Population (n_neurons , model , label = label ,
242+ ** additional_kwargs )
239243 vertex , aec , vertex_label = __vtx (population )
240244 translator = aec .get_message_translator ()
241245 live_packet_gather_label = "EthernetControlReceiver"
@@ -273,7 +277,8 @@ def EthernetControlPopulation(
273277def EthernetSensorPopulation (
274278 device : AbstractEthernetSensor , local_host : Optional [str ] = None ,
275279 database_notify_port_num : Optional [int ] = None ,
276- database_ack_port_num : Optional [int ] = None ) -> Population :
280+ database_ack_port_num : Optional [int ] = None ,
281+ ** additional_kwargs : Dict [str , Any ]) -> Population :
277282 # pylint: disable=invalid-name
278283 """
279284 Create a pyNN population which can be included in a network to
@@ -289,6 +294,8 @@ def EthernetSensorPopulation(
289294 :param database_notify_port_num:
290295 The optional port to which notifications from the database
291296 notification protocol are to be sent
297+ :param additional_kwargs:
298+ A nicer way of allowing additional things to the Population
292299 :return:
293300 A pyNN Population which can be used as the source of a Projection.
294301
@@ -304,7 +311,8 @@ def EthernetSensorPopulation(
304311 population = Population (
305312 device .get_n_neurons (), SpikeInjector (notify = False ),
306313 label = device .get_injector_label (),
307- additional_parameters = injector_params )
314+ additional_parameters = injector_params ,
315+ ** additional_kwargs )
308316 if isinstance (device , AbstractSendMeMulticastCommandsVertex ):
309317 cmd_conn = EthernetCommandConnection (
310318 device .get_translator (), [device ], local_host ,
0 commit comments