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 4fc9f33 commit 42b9b38
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spinn_gym/games/breakout/breakout_machine_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def generate_data_specification(
spec.switch_write_focus(
BreakoutMachineVertex._BREAKOUT_REGIONS.BREAKOUT.value)
routing_info = SpynnakerDataView.get_routing_infos()
spec.write_value(routing_info.get_safe_first_key_from_pre_vertex(
spec.write_value(routing_info.get_key_from(
vertex, SPIKE_PARTITION_ID))
if self.app_vertex.source_vertex is None:
raise ValueError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def generate_data_specification(
spec.switch_write_focus(
self._DOUBLE_PENDULUM_REGIONS.PENDULUM.value)
routing_info = SpynnakerDataView.get_routing_infos()
spec.write_value(routing_info.get_safe_first_key_from_pre_vertex(
spec.write_value(routing_info.get_key_from(
vertex, SPIKE_PARTITION_ID))

# Write recording region for score
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def generate_data_specification(
spec.switch_write_focus(
self._PENDULUM_REGIONS.PENDULUM.value)
routing_info = SpynnakerDataView.get_routing_infos()
spec.write_value(routing_info.get_safe_first_key_from_pre_vertex(
spec.write_value(routing_info.get_key_from(
vertex, SPIKE_PARTITION_ID))

# Write recording region for score
Expand Down
2 changes: 1 addition & 1 deletion spinn_gym/games/logic/logic_machine_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def generate_data_specification(
spec.switch_write_focus(
self._LOGIC_REGIONS.LOGIC.value)
routing_info = SpynnakerDataView.get_routing_infos()
spec.write_value(routing_info.get_safe_first_key_from_pre_vertex(
spec.write_value(routing_info.get_key_from(
vertex, SPIKE_PARTITION_ID))

# Write recording region for score
Expand Down
2 changes: 1 addition & 1 deletion spinn_gym/games/multi_arm_bandit/bandit_machine_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def generate_data_specification(
spec.switch_write_focus(
self._BANDIT_REGIONS.BANDIT.value)
routing_info = SpynnakerDataView.get_routing_infos()
spec.write_value(routing_info.get_safe_first_key_from_pre_vertex(
spec.write_value(routing_info.get_key_from(
vertex, SPIKE_PARTITION_ID))

# Write recording region for score
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def generate_data_specification(
spec.switch_write_focus(
self._RECALL_REGIONS.RECALL.value)
routing_info = SpynnakerDataView.get_routing_infos()
spec.write_value(routing_info.get_safe_first_key_from_pre_vertex(
spec.write_value(routing_info.get_key_from(
vertex, SPIKE_PARTITION_ID))

# Write recording region for score
Expand Down

0 comments on commit 42b9b38

Please sign in to comment.