Skip to content

Commit

Permalink
fixes issue :965
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-stokes committed Jan 22, 2021
1 parent 14ea4b2 commit 75783a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spinn_utilities/ranged/ranged_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ def as_list(value, size, ids=None):
values = list(function_iterator(value, size, ids))
else:
values = list(value)
if len(values) == 0:
values = [[] for _ in range(size)]
if len(values) != size:
raise Exception("The number of values does not equal the size")
return values
Expand Down

0 comments on commit 75783a0

Please sign in to comment.