Commit 97da441d authored by flothoni's avatar flothoni

model.js; fix error for function countRealClones

This error appear since we set distribtuions clones
Link #4057
parent c6140f53
......@@ -1348,7 +1348,14 @@ changeAlleleNotation: function(alleleNotation) {
* added)
* */
countRealClones: function() {
return this.clones.length - this.system_available.length;
var sum = 0;
for (var i = 0; i < this.clones.length; i++) {
var clone = this.clones[i]
if (clone.hasSizeConstant()){
sum += 1
}
}
return sum
},
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment