Skip to content

Commit

Permalink
Avoid removing 3D/ECS fluxes that share a index with 1D fluxes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjhn authored Oct 26, 2023
1 parent ecf70fc commit b2ebbb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/lib/python/neuron/rxd/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def _remove(start, stop):

# remove _node_flux
newflux = {"index": [], "type": [], "source": [], "scale": [], "region": []}
for (i, idx) in enumerate(_node_fluxes["index"]):
if idx not in dels:
for i, (idx, typ) in enumerate(zip(_node_fluxes["index"], _node_fluxes["type"])):
if typ != -1 or idx not in dels:
for key in _node_fluxes:
newflux[key].append(_node_fluxes[key][i])
newflux["index"] = [
Expand Down

0 comments on commit b2ebbb9

Please sign in to comment.