Skip to content

Commit

Permalink
add _sources
Browse files Browse the repository at this point in the history
  • Loading branch information
rgourdine committed Jan 28, 2024
1 parent f3b093f commit cc8bc56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion share/lib/python/neuron/rxd/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from collections.abc import Callable

_sources = []

# function to change extracellular diffusion
set_diffusion = nrn_dll_sym("set_diffusion")
Expand Down Expand Up @@ -349,9 +350,10 @@ def include_flux(self, *args, **kwargs):
f = float(args[0])
source = f
success = True
except:
except ValueError:
arith = rxdmath._ensure_arithmeticed(args[0])
source = lambda: eval_arith_flux(arith, self.region, self)
_sources.append(source)
scale = 1 / self.volume
success = True
if not success:
Expand Down

0 comments on commit cc8bc56

Please sign in to comment.