Skip to content

Commit

Permalink
Pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Oct 11, 2024
1 parent b7dc420 commit 85a79ac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions spynnaker/pyNN/models/neuron/abstract_population_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ def __init__(

@property
def extra_partitions(self) -> List[str]:
""" The extra partitions that are to be sent by the vertex. """
if self.__extra_partitions is None:
return []
return self.__extra_partitions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,13 @@ def read_parameters_from_machine(self, placement: Placement):

def read_connections(
self, synapse_info: SynapseInformation) -> ConnectionsArray:
"""
Read the connections from the machine.
:param SynapseInformation synapse_info:
The synapse information being read
:return: The connections read back
"""
size = self.vertex_slice.n_atoms * SDRAM_EDGE_PARAMS_BYTES_PER_WEIGHT
placement = SpynnakerDataView().get_placement_of_vertex(self)
addr = locate_memory_region_for_placement(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,10 @@ def n_colour_bits(self) -> int:
def read_connections(
self, synapse_info: SynapseInformation) -> List[ConnectionsArray]:
""" Read Poisson connections from the machine
:param SynapseInformation synapse_info:
The synapse information of the data being read
:return: The set of connections from all machine vertices
"""
connections = list()
for m_vertex in self.machine_vertices:
Expand Down

0 comments on commit 85a79ac

Please sign in to comment.