Skip to content

Commit

Permalink
Rename functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Oct 14, 2024
1 parent 4cb2af4 commit d90bcbf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions spinn_pdp2/input_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,12 @@ def generate_machine_data_specification(
spec.switch_write_focus (MLPRegions.ROUTING.value)

# write link keys: fwd
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.fwd_link)
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bkp
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.bkp_link)
spec.write_value (key, data_type = DataType.UINT32)

Expand Down
8 changes: 4 additions & 4 deletions spinn_pdp2/sum_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ def generate_machine_data_specification(
spec.switch_write_focus (MLPRegions.ROUTING.value)

# write link keys: fwd
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.fwd_link)
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bkp
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.bkp_link)
spec.write_value(key, data_type=DataType.UINT32)

Expand All @@ -335,12 +335,12 @@ def generate_machine_data_specification(
spec.write_value (0, data_type = DataType.UINT32)

# write link keys: lds
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.lds_link)
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: fsg
key = routing_info.get_safe_first_key_from_pre_vertex (
key = routing_info.get_key_from (
self, self.fsg_link)
spec.write_value(key, data_type=DataType.UINT32)

Expand Down
6 changes: 3 additions & 3 deletions spinn_pdp2/threshold_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,20 +483,20 @@ def generate_machine_data_specification(
spec.switch_write_focus (MLPRegions.ROUTING.value)

# write link keys: fwd
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.fwd_link)
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bkp
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.bkp_link)
spec.write_value (key, data_type = DataType.UINT32)

# write link keys: bps (padding)
spec.write_value (0, data_type = DataType.UINT32)

# write link keys: stp
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.stp_link)
spec.write_value(key, data_type=DataType.UINT32)

Expand Down
8 changes: 4 additions & 4 deletions spinn_pdp2/weight_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,12 @@ def generate_machine_data_specification(
spec.switch_write_focus (MLPRegions.ROUTING.value)

# write link keys: fwd
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.fwd_link)
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bkp
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.bkp_link)
spec.write_value(key, data_type=DataType.UINT32)

Expand All @@ -369,12 +369,12 @@ def generate_machine_data_specification(
spec.write_value (0, data_type = DataType.UINT32)

# write link keys: lds
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.lds_link)
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: fsg
key = routing_info.get_safe_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.fsg_link)
spec.write_value(key, data_type=DataType.UINT32)

Expand Down

0 comments on commit d90bcbf

Please sign in to comment.