Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Implements Brette et al. (2005), 'Adaptive exponential integrate-and-fire model
- Fix issue causing some `View`s to take too long to create (#791, @alexpejovic)
- Fix single point branch plotting with type="comp" (#797, @jnsbck)
- jx.integrate took O(n^2) time with n compartments on the backwards pass. Instead of backpropagating through the forward solve, we now use a custom_jvp (another tridiagonal solve, which is O(n)) (#795 @manuelgloeckler)
- Fix compatibility with newer JAX versions by avoiding the deprecated `jnp.clip(..., a_max=...)` keyword in `solver_gate.save_exp` (#798, @lorenzosquadrani)

# 0.13.0

Expand Down
2 changes: 1 addition & 1 deletion jaxley/solver_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def save_exp(x, max_value: float = 20.0):
"""Clip the input to a maximum value and return its exponential."""
x = jnp.clip(x, a_max=max_value)
x = jnp.minimum(x, max_value)
return jnp.exp(x)


Expand Down
Loading