Skip to content

Commit

Permalink
fix: ammend last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsbck committed Dec 16, 2024
1 parent 1e76daf commit 5120d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaxley/modules/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,11 +1247,11 @@ def _prepare_for_jax(self):

current_names = self.membrane_current_names + self.synapse_current_names
global_states_params = global_states + global_params + current_names
node_attrs = self.nodes.columns.to_list() + current_names + channel_names

channel_names = [c._name for c in self.channels]
syn_names = [s._name for s in self.synapses]

node_attrs = self.nodes.columns.to_list() + current_names + channel_names
def inds_of_key(key: str) -> np.ndarray:
"""Return the indices for params, states, mechanisms and currents."""
data = self.nodes if key in node_attrs else pd.DataFrame()
Expand Down

0 comments on commit 5120d7b

Please sign in to comment.