Page 1 of 1

decay reactions

Posted: Wed Aug 14, 2019 5:14 am
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'"

Re: decay reactions

Posted: Wed Aug 14, 2019 10:25 am
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)