Skip to content

Commit

Permalink
assert value is not None befere writing
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 9, 2024
1 parent 92666e3 commit 9bb655a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spinn_pdp2/sum_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,13 @@ def generate_machine_data_specification(
# write link keys: fwd
key = routing_info.get_first_key_from_pre_vertex(
self, self.fwd_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bkp
key = routing_info.get_first_key_from_pre_vertex(
self, self.bkp_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bps (padding)
Expand Down

0 comments on commit 9bb655a

Please sign in to comment.