Skip to content

Commit

Permalink
asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 23, 2025
1 parent f036aec commit c9920b9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ def gen_connector_params(
n_values = self.__n_neurons_per_group
if n_values is None:
n_values = synapse_info.n_pre_neurons
assert self.__offset >= 0
assert self.__wrap >= 0
assert n_values >= 0
return numpy.array([self.__offset, int(self.__wrap), n_values],
dtype=uint32)

Expand Down

0 comments on commit c9920b9

Please sign in to comment.