Add plate well concentrations to output data

This commit is contained in:
2022-02-20 02:17:36 -06:00
parent 9c52bc878a
commit 52afb1edc2
2 changed files with 5 additions and 1 deletions

View File

@@ -28,11 +28,15 @@ public class Plate {
this.sourceFile = sourceFileName; this.sourceFile = sourceFileName;
this.wells = wells; this.wells = wells;
this.size = wells.size(); this.size = wells.size();
List<Integer> concentrations = new ArrayList<>(); List<Integer> concentrations = new ArrayList<>();
for (List<Integer[]> w: wells) { for (List<Integer[]> w: wells) {
concentrations.add(w.size()); concentrations.add(w.size());
} }
this.concentrations = concentrations.toArray(new Integer[concentrations.size()]); this.concentrations = new Integer[concentrations.size()];
for (int i = 0; i < this.concentrations.length; i++) {
this.concentrations[i] = concentrations.get(i);
}
} }
public void fillWellsExponential(String sourceFileName, List<Integer[]> cells, double lambda){ public void fillWellsExponential(String sourceFileName, List<Integer[]> cells, double lambda){