Skip to content

Commit

Permalink
Fix delayvar not correct in concat mode
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudyDory authored Feb 22, 2024
1 parent 5eb7cee commit 21b30ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainpy/_src/math/delayvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def update(self, value: Union[numbers.Number, Array, jax.Array] = None):

elif self.update_method == CONCAT_UPDATE:
if self.num_delay_step >= 2:
self.data.value = concatenate([expand_dims(value, 0), self.data[1:]], axis=0)
self.data.value = concatenate([expand_dims(value, 0), self.data[:-1]], axis=0)
else:
self.data[:] = value

Expand Down

0 comments on commit 21b30ff

Please sign in to comment.