Template:Team:Paris Saclay/simbox
From 2013.igem.org
(Difference between revisions)
Line 331: | Line 331: | ||
var reac= sim.reactions[sim.reac_order[i]]; | var reac= sim.reactions[sim.reac_order[i]]; | ||
- | var proba= reac.precomp_probfactor; | + | var proba= 0.00001; // TODO RESET reac.precomp_probfactor; |
for(var j= 0 ; j < reac.inputs.length ; ++j) | for(var j= 0 ; j < reac.inputs.length ; ++j) | ||
proba *= sim.molecules[reac.inputs[j]].quantity; | proba *= sim.molecules[reac.inputs[j]].quantity; | ||
Line 338: | Line 338: | ||
var frac= proba - entier; | var frac= proba - entier; | ||
- | + | ||
for(var elt in reac.precomp_molusage) | for(var elt in reac.precomp_molusage) | ||
{ | { | ||
- | |||
if( entier * reac.precomp_molusage[elt] >= sim.molecules[elt].quantity ) | if( entier * reac.precomp_molusage[elt] >= sim.molecules[elt].quantity ) | ||
{ | { |
Revision as of 11:37, 3 August 2013