Skip to content

Commit

Permalink
Update delayvars.py
Browse files Browse the repository at this point in the history
Fix error message
  • Loading branch information
CloudyDory authored Jan 16, 2024
1 parent 84aaca1 commit e64c8e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brainpy/_src/math/delayvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ def reset(
batch_axis: int = None
):
if not isinstance(delay_target, (ndarray, jnp.ndarray)):
raise ValueError(f'Must be an instance of brainpy.math.ndarray or jax.numpy.ndarray. But we got {type(delay_target)}')
raise ValueError(f'Must be an instance of brainpy.math.ndarray or '
f'jax.numpy.ndarray. But we got {type(delay_target)}')

# delay_len
# is_integer(delay_len, 'delay_len', allow_none=True, min_bound=0)
Expand Down

0 comments on commit e64c8e8

Please sign in to comment.