Skip to content

Commit d6dd18d

Browse files
committed
remove pylint: disable=too-many-arguments
1 parent 988dbd6 commit d6dd18d

67 files changed

Lines changed: 10 additions & 79 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

spynnaker/pyNN/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def setup(timestep: Optional[Union[float, Literal["auto"]]] = None,
304304
~spinn_front_end_common.utilities.exceptions.ConfigurationException:
305305
if both ``n_chips_required`` and ``n_boards_required`` are used.
306306
"""
307-
# pylint: disable=global-statement,too-many-arguments
307+
# pylint: disable=global-statement
308308
# Check for "auto" values and None
309309
global __simulator
310310
if timestep is None:
@@ -395,7 +395,6 @@ def Projection(
395395
:return: a projection object for SpiNNaker
396396
:rtype: ~spynnaker.pyNN.models.projection.Projection
397397
"""
398-
# pylint: disable=too-many-arguments
399398
return SpiNNakerProjection(
400399
pre_synaptic_population=presynaptic_population,
401400
post_synaptic_population=postsynaptic_population, connector=connector,
@@ -555,7 +554,6 @@ def connect(pre: Population, post: Population, weight: float = 0.0,
555554
:param float p: probability
556555
:param ~pyNN.random.NumpyRNG rng: random number generator
557556
"""
558-
# pylint: disable=too-many-arguments
559557
SpynnakerDataView.check_user_can_act()
560558
__pynn["connect"](pre, post, weight, delay, receptor_type, p, rng)
561559

spynnaker/pyNN/connections/spif_live_spikes_connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def __init__(self, receive_labels: Optional[Iterable[str]],
104104
the port that the toolchain will send the notification on (19999
105105
by default)
106106
"""
107-
# pylint: disable=too-many-arguments
108107
super().__init__(
109108
self.__do_start_resume, self.__do_stop_pause,
110109
local_host=local_host, local_port=local_port)

spynnaker/pyNN/connections/spynnaker_live_spikes_connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def __init__(self, receive_labels: Optional[Iterable[str]] = None,
4747
the port that the toolchain will send the notification on (19999
4848
by default)
4949
"""
50-
# pylint: disable=too-many-arguments
5150
super().__init__(
5251
live_packet_gather_label, receive_labels, send_labels,
5352
local_host, local_port)

spynnaker/pyNN/external_devices/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def EthernetControlPopulation(
239239
:rtype: ~spynnaker.pyNN.models.populations.Population
240240
:raises TypeError: If an invalid model class is used.
241241
"""
242-
# pylint: disable=too-many-arguments, global-statement
242+
# pylint: disable=global-statement
243243
population = Population(n_neurons, model, label=label)
244244
vertex, aec, vertex_label = __vtx(population)
245245
translator = aec.get_message_translator()

spynnaker/pyNN/external_devices_models/arbitrary_fpga_device.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def __init__(
4141
:param label:
4242
:type label: str or None
4343
"""
44-
# pylint: disable=too-many-arguments
4544
conn = FPGAConnection(
4645
fpga_id, fpga_link_id, board_address, chip_coords)
4746
super().__init__(n_neurons, [conn], conn, label)

spynnaker/pyNN/external_devices_models/external_device_lif_control.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ def __init__(
8383
:param float isyn_inh:
8484
(defaulted LIF neuron state variable initial value)
8585
"""
86-
# pylint: disable=too-many-arguments
87-
8886
if not devices:
8987
raise ConfigurationException("No devices specified")
9088

spynnaker/pyNN/external_devices_models/external_device_lif_control_vertex.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def __init__(
9393
:type splitter: SplitterPopulationVertex or None
9494
:param int n_colour_bits: The number of colour bits to use
9595
"""
96-
# pylint: disable=too-many-arguments
9796
if drop_late_spikes is None:
9897
drop_late_spikes = False
9998
extra_partition_ids = [

spynnaker/pyNN/external_devices_models/external_spinnaker_link_fpga_retina_device.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def __init__(
104104
:param str label:
105105
:param str board_address:
106106
"""
107-
# pylint: disable=too-many-arguments
108107
fixed_n_neurons = self.get_n_neurons(mode, polarity)
109108
super().__init__(
110109
n_atoms=fixed_n_neurons, spinnaker_link_id=spinnaker_link_id,

spynnaker/pyNN/external_devices_models/munich_spinnaker_link_motor_device.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def __init__(
6868
:param str label:
6969
:type label: str or None
7070
"""
71-
# pylint: disable=too-many-arguments
7271
m_vertex = MachineMunichMotorDevice(
7372
speed, sample_time, update_time, delay_time, delta_threshold,
7473
continue_if_not_different, label, app_vertex=self)

spynnaker/pyNN/external_devices_models/munich_spinnaker_link_retina_device.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def __init__(
103103
:param board_address:
104104
:type board_address: str or None
105105
"""
106-
# pylint: disable=too-many-arguments
107106
if polarity is None:
108107
polarity = MunichRetinaDevice.MERGED_POLARITY
109108

0 commit comments

Comments
 (0)