Skip to content

Commit

Permalink
convert numpy to int list
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 8, 2025
1 parent 60f98cc commit 61147e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spinn_utilities/ranged/ranged_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,9 @@ def set_value_by_slice(

def _set_values_list(self, ids: IdsType, value: _ListType) -> None:
values = self.as_list(value=value, size=len(ids), ids=ids)
id_value: int
val: T
for id_value, val in zip(ids, values):
as_int: Sequence[int] = list(ids)
for id_value, val in zip(as_int, values):
self.set_value_by_id(id_value, val)

def set_value_by_ids(
Expand Down

0 comments on commit 61147e3

Please sign in to comment.