Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeistler committed Dec 6, 2023
1 parent 2bcefa3 commit 5621204
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jaxley/modules/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(

# Synapse indexing.
self.syn_edges = pd.DataFrame(
dict(pre_comp_index=[], post_comp_index=[], type="")
dict(global_pre_comp_index=[], global_post_comp_index=[], type="")
)
self.branch_edges = pd.DataFrame(
dict(parent_branch_index=[], child_branch_index=[])
Expand Down
2 changes: 1 addition & 1 deletion jaxley/modules/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(

# Synapse indexing.
self.syn_edges = pd.DataFrame(
dict(pre_comp_index=[], post_comp_index=[], type="")
dict(global_pre_comp_index=[], global_post_comp_index=[], type="")
)
self.branch_edges = pd.DataFrame(
dict(
Expand Down
2 changes: 1 addition & 1 deletion jaxley/modules/compartment.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self):
)
# Synapse indexing.
self.syn_edges = pd.DataFrame(
dict(pre_comp_index=[], post_comp_index=[], type="")
dict(global_pre_comp_index=[], global_post_comp_index=[], type="")
)
self.branch_edges = pd.DataFrame(
dict(parent_branch_index=[], child_branch_index=[])
Expand Down
4 changes: 2 additions & 2 deletions jaxley/modules/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ def _step_synapse(
voltages = u["voltages"]

grouped_syns = edges.groupby("type", sort=False, group_keys=False)
pre_syn_inds = grouped_syns["pre_comp_index"].apply(list)
post_syn_inds = grouped_syns["post_comp_index"].apply(list)
pre_syn_inds = grouped_syns["global_pre_comp_index"].apply(list)
post_syn_inds = grouped_syns["global_post_comp_index"].apply(list)
synapse_names = list(grouped_syns.indices.keys())

syn_voltage_terms = jnp.zeros_like(voltages)
Expand Down

0 comments on commit 5621204

Please sign in to comment.