Bug fix
This commit is contained in:
@@ -221,7 +221,7 @@ public class Plate {
|
||||
if (rand.nextDouble() <= readErrorProb) {
|
||||
readError = true;
|
||||
StringBuilder spurious = new StringBuilder(cell[sIndex]);
|
||||
if (rand.nextDouble() > errorCollisionProb) {
|
||||
if (!distinctMisreadCounts.containsKey(cell[sIndex]) || rand.nextDouble() > errorCollisionProb) {
|
||||
distinctMisreadCounts.merge(cell[sIndex], 1, (oldValue, newValue) -> oldValue + newValue);
|
||||
for (int j = 0; j < distinctMisreadCounts.get(cell[sIndex]); j++) {
|
||||
spurious.append("*");
|
||||
|
||||
Reference in New Issue
Block a user