Recording source file names in output files, allowing output of intermediate results

This commit is contained in:
2021-11-18 15:38:29 -06:00
parent 09aa5961f3
commit 2ab93dd4b7
8 changed files with 73 additions and 29 deletions

View File

@@ -14,12 +14,14 @@ import java.util.regex.Pattern;
public class PlateFileReader {
private List<List<Integer[]>> wells = new ArrayList<>();
private String filename;
public PlateFileReader(String filename){
if(!filename.matches(".*\\.csv")){
filename = filename + ".csv";
}
this.filename = filename;
CSVFormat plateFileFormat = CSVFormat.Builder.create()
.setCommentMarker('#')
@@ -58,4 +60,7 @@ public class PlateFileReader {
return wells;
}
public String getFilename() {
return filename;
}
}