Skip to content

Commit

Permalink
fix: add warning to non diff channel
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsbck committed Jan 10, 2025
1 parent 8b13502 commit 9ff6309
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jaxley/channels/lif.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# licensed under the Apache License Version 2.0, see <https://www.apache.org/licenses/>

from typing import Dict, Optional
from warnings import warn

import jax.numpy as jnp

Expand All @@ -25,6 +26,8 @@ def __init__(self, name: Optional[str] = None):
}
self.current_name = f"{self.name}_i"

warn("This channel is not differentiable. Consider using SmoothLIF instead.")

def update_states(self, states, dt, v, params):
prefix = self._name
# Decrease refractory time
Expand Down

0 comments on commit 9ff6309

Please sign in to comment.