Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeistler committed Sep 23, 2024
1 parent ff736a3 commit 8d449de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jaxley/modules/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _init_morph_jaxley_spsolve(self):
)
self.root_inds = jnp.asarray([0])

# Generate mapping to dealing with the masking which allows using the custom
# Generate mapping to deal with the masking which allows using the custom
# sparse solver to deal with different nseg per branch.
self._remapped_node_indices = remap_index_to_masked(
self._internal_node_inds,
Expand Down
5 changes: 4 additions & 1 deletion jaxley/utils/solver_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ def remap_index_to_masked(
"""Convert actual index of the compartment to the index in the masked system.
E.g. if `nsegs = [2, 4]`, then the index `3` would be mapped to `5` because the
masked `nsegs` are `[4, 4]`.
masked `nsegs` are `[4, 4]`. I.e.:
original: [0, 1, 2, 3, 4, 5]
masked: [0, 1, (2) ,(3) ,4, 5, 6, 7]
"""
cumsum_nseg_per_branch = jnp.concatenate(
[
Expand Down

0 comments on commit 8d449de

Please sign in to comment.