Skip to content
Open
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 @@ -13,6 +13,7 @@ Implements Brette et al. (2005), 'Adaptive exponential integrate-and-fire model
- Fix issue where `build_dynamic_state_utils` `remove_observables` performed in-place deletions on full state dict (#775, @chaseking)
- Allow data_clamp to clamp multiple different states without silently only clamping the last state (#773, @kyralianaka) and fixed checkpointing for this case (#786, @kyralianaka)
- Fix issue causing some `View`s to take too long to create (#791, @alexpejovic)
- Fix missing `self` in `Synapse` base class, stale `uA/cm2` docstrings, invalid `np.ndarray[bool]` annotation, and duplicate import (#792, @haoyu-haoyu)

# 0.13.0

Expand Down
4 changes: 2 additions & 2 deletions jaxley/channels/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Channel:

As in NEURON, a `Channel` is considered a distributed process, which means that its
conductances are to be specified in `S/cm2` and its currents are to be specified in
`uA/cm2`."""
`mA/cm2`."""

_name = None
channel_params = None
Expand Down Expand Up @@ -96,7 +96,7 @@ def compute_current(
params: Parameters of the channel (conductances in `S/cm2`).

Returns:
Current in `uA/cm2`.
Current in `mA/cm2`.
"""
raise NotImplementedError

Expand Down
2 changes: 1 addition & 1 deletion jaxley/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def connectivity_matrix_connect(
pre_cell_view: "View",
post_cell_view: "View",
synapse_type: "Synapse",
connectivity_matrix: np.ndarray[bool],
connectivity_matrix: np.ndarray,
random_post_comp: bool = False,
):
"""Connect cells of a network with synapses via a boolean connectivity matrix.
Expand Down
2 changes: 1 addition & 1 deletion jaxley/integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# licensed under the Apache License Version 2.0, see <https://www.apache.org/licenses/>
from collections.abc import Callable
from math import prod
from typing import Callable, Dict, List, Optional, Tuple, Union
from typing import Dict, List, Optional, Tuple, Union

import jax
import jax.numpy as jnp
Expand Down
2 changes: 2 additions & 0 deletions jaxley/synapses/synapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def change_name(self, new_name: str):
return self

def update_states(
self,
states: dict[str, Array],
delta_t: float,
pre_voltage: ArrayLike,
Expand All @@ -78,6 +79,7 @@ def update_states(
raise NotImplementedError

def compute_current(
self,
states: dict[str, Array],
pre_voltage: ArrayLike,
post_voltage: ArrayLike,
Expand Down