Skip to content

Commit

Permalink
return None
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Dec 16, 2024
1 parent 3ec2384 commit d31b9b1
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def parse_extra_provenance_items(
"or decrease the number of neurons per core.")

@overrides(AbstractGeneratesDataSpecification.generate_data_specification)
def generate_data_specification(
self, spec: DataSpecificationGenerator, placement: Placement):
def generate_data_specification(self, spec: DataSpecificationGenerator,
placement: Placement) -> None:
# reserve regions
self.reserve_memory_regions(spec)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ def get_recorded_region_ids(self) -> List[int]:
return ids

@overrides(AbstractGeneratesDataSpecification.generate_data_specification)
def generate_data_specification(
self, spec: DataSpecificationGenerator, placement: Placement):
def generate_data_specification(self, spec: DataSpecificationGenerator,
placement: Placement) -> None:
rec_regions = self._pop_vertex.neuron_recorder.get_region_sizes(
self.vertex_slice)
rec_regions.extend(self._pop_vertex.synapse_recorder.get_region_sizes(
Expand Down
4 changes: 2 additions & 2 deletions spynnaker/pyNN/models/neuron/population_machine_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ def get_recorded_region_ids(self) -> List[int]:
return ids

@overrides(AbstractGeneratesDataSpecification.generate_data_specification)
def generate_data_specification(
self, spec: DataSpecificationGenerator, placement: Placement):
def generate_data_specification(self, spec: DataSpecificationGenerator,
placement: Placement) -> None:
rec_regions = self._pop_vertex.neuron_recorder.get_region_sizes(
self.vertex_slice)
rec_regions.extend(self._pop_vertex.synapse_recorder.get_region_sizes(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ def get_recorded_region_ids(self) -> List[int]:
return ids

@overrides(AbstractGeneratesDataSpecification.generate_data_specification)
def generate_data_specification(
self, spec: DataSpecificationGenerator, placement: Placement):
def generate_data_specification(self, spec: DataSpecificationGenerator,
placement: Placement) -> None:
assert self.__sdram_partition is not None
rec_regions = self._pop_vertex.neuron_recorder.get_region_sizes(
self.vertex_slice)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def get_recorded_region_ids(self) -> List[int]:
return ids

@overrides(AbstractGeneratesDataSpecification.generate_data_specification)
def generate_data_specification(
self, spec: DataSpecificationGenerator, placement: Placement):
def generate_data_specification(self, spec: DataSpecificationGenerator,
placement: Placement) -> None:
rec_regions = self._pop_vertex.synapse_recorder.get_region_sizes(
self.vertex_slice)
self._write_common_data_spec(spec, rec_regions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def __init__(
self.__synapse_references = synapse_references

@overrides(AbstractGeneratesDataSpecification.generate_data_specification)
def generate_data_specification(
self, spec: DataSpecificationGenerator, placement: Placement):
def generate_data_specification(self, spec: DataSpecificationGenerator,
placement: Placement) -> None:
rec_regions = self._pop_vertex.synapse_recorder.get_region_sizes(
self.vertex_slice)
self._write_common_data_spec(spec, rec_regions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ def __conn(synapse_info: SynapseInformation
'AbstractGenerateConnectorOnHost', synapse_info.connector)

@overrides(AbstractGeneratesDataSpecification.generate_data_specification)
def generate_data_specification(
self, spec: DataSpecificationGenerator, placement: Placement):
def generate_data_specification(self, spec: DataSpecificationGenerator,
placement: Placement) -> None:
spec.comment("\n*** Spec for SpikeSourcePoisson Instance ***\n\n")
# if we are here, the rates have changed!
self.__rate_changed = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ def get_binary_start_type(self) -> ExecutableType:
return ExecutableType.USES_SIMULATION_INTERFACE

@overrides(AbstractGeneratesDataSpecification.generate_data_specification)
def generate_data_specification(
self, spec: DataSpecificationGenerator, placement: Placement):
def generate_data_specification(self, spec: DataSpecificationGenerator,
placement: Placement) -> None:
vertex = placement.vertex

# Reserve memory:
Expand Down

0 comments on commit d31b9b1

Please sign in to comment.