decay reactions

Extending NEURON to handle reaction-diffusion problems.

Moderators: hines, wwlytton, ramcdougal

Post Reply
Posts: 10
Joined: Mon Apr 23, 2018 6:59 am

decay reactions

Post by Tuoma »

How to implement a decay reaction (a reaction with no products)?

In an earlier NEURON version it was possible to write

Code: Select all

reaction_decay = rxd.Reaction(Ca > 0*Ca, 1e-8)
but now (v. 7.7) I get an error "AttributeError: 'Reaction' object has no attribute '_react_regions'"
Posts: 43
Joined: Tue Apr 18, 2017 10:05 am

Re: decay reactions

Post by adamjhn »

Thanks for bringing this bug to our attention, it will be fixed in the next release. In the meantime a reaction with no products can be implemented with rxd.Rate. For example;

Code: Select all

reaction_decay = rxd.Rate(Ca, -1e-8*Ca)
Post Reply