From b53f5f1cc0fae99823e64062c5dc04f15afc8bd3 Mon Sep 17 00:00:00 2001 From: efischer Date: Sun, 27 Feb 2022 14:17:16 -0600 Subject: [PATCH] Refactor plate to fill its own wells in its constructor --- src/main/java/InteractiveInterface.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/InteractiveInterface.java b/src/main/java/InteractiveInterface.java index 9293cfd..b4bf965 100644 --- a/src/main/java/InteractiveInterface.java +++ b/src/main/java/InteractiveInterface.java @@ -227,16 +227,14 @@ public class InteractiveInterface { Plate samplePlate; PlateFileWriter writer; if(exponential){ - samplePlate = new Plate(numWells, dropOutRate, populations); - samplePlate.fillWellsExponential(cellFile, cells.getCells(), lambda); + samplePlate = new Plate(cells, cellFile, numWells, populations, dropOutRate, lambda, true); writer = new PlateFileWriter(filename, samplePlate); } else { if (poisson) { stdDev = Math.sqrt(cells.getCellCount()); //gaussian with square root of elements approximates poisson } - samplePlate = new Plate(numWells, dropOutRate, populations); - samplePlate.fillWells(cellFile, cells.getCells(), stdDev); + samplePlate = new Plate(cells, cellFile, numWells, populations, dropOutRate, stdDev, false); writer = new PlateFileWriter(filename, samplePlate); } System.out.println("Writing Sample Plate to file");