Template:Team:Paris Saclay/simbox
From 2013.igem.org
(Difference between revisions)
Line 150: | Line 150: | ||
simulations[id].reactions[i].precomp_molusage[tmpid] ++; | simulations[id].reactions[i].precomp_molusage[tmpid] ++; | ||
} | } | ||
- | |||
} | } | ||
Line 172: | Line 171: | ||
} | } | ||
} | } | ||
- | |||
- | |||
//precompute index array for easy shuffling | //precompute index array for easy shuffling | ||
Line 337: | Line 334: | ||
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; | ||
+ | |||
+ | alert(proba); | ||
var entier= Math.floor(proba); | var entier= Math.floor(proba); |
Revision as of 11:18, 3 August 2013