vcell icon indicating copy to clipboard operation
vcell copied to clipboard

NFSim immediately creates an observable for total in a default compartment when molecule created

Open ACowan0105 opened this issue 3 years ago • 2 comments

May need to clarify issue

ACowan0105 avatar Jul 19 '22 19:07 ACowan0105

I suppose that this is not desirable? @vcellmike @danv61 Please explain how vcell behaves now, and what you would like it to do.

jcschaff avatar Nov 03 '23 22:11 jcschaff

@jcschaff This observable was initially created when we were dealing with single compartment models. It allowed us to verify mass conservation, which allowed us to fix some very nasty early bugs. For multi-compartment models the observable we make should be the sum of the totals for all compartments, not just one. We never intended to overcomplicate this, like maintaining the expression when compartments are being added or deleted. Look at it as a debugging tool / feature.

danv61 avatar Nov 06 '23 19:11 danv61