Skip to content

Commit

Permalink
Merge pull request #1510 from SpiNNakerManchester/t_pacman
Browse files Browse the repository at this point in the history
Typing for PACMAN
  • Loading branch information
Christian-B authored Dec 23, 2024
2 parents 64d0914 + 2110a44 commit 60ab4d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spynnaker/pyNN/external_devices_models/spif_output_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def __is_power_of_2(self, v):
return (v & (v - 1) == 0) and (v != 0)

@overrides(ApplicationFPGAVertex.add_incoming_edge)
def add_incoming_edge(
self, edge: ApplicationEdge, partition: ApplicationEdgePartition):
def add_incoming_edge(self, edge: ApplicationEdge,
partition: ApplicationEdgePartition) -> None:
# Only add edges from PopulationApplicationVertices
if not isinstance(edge.pre_vertex, PopulationApplicationVertex):
if not isinstance(edge.pre_vertex, CommandSender):
Expand Down
2 changes: 1 addition & 1 deletion spynnaker/pyNN/models/neuron/abstract_population_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def get_max_atoms_per_dimension_per_core(self) -> Tuple[int, ...]:
@overrides(PopulationApplicationVertex.
set_max_atoms_per_dimension_per_core)
def set_max_atoms_per_dimension_per_core(
self, new_value: Union[None, int, Tuple[int, ...]]):
self, new_value: Union[None, int, Tuple[int, ...]]) -> None:
if new_value is not None:
max_atoms = self.__synapse_dynamics.absolute_max_atoms_per_core
if numpy.prod(new_value) > max_atoms:
Expand Down

0 comments on commit 60ab4d1

Please sign in to comment.