This commit is contained in:
Jonathan Shook 2021-04-01 10:56:45 -05:00
commit 29b7cb55b1
3 changed files with 5 additions and 2 deletions

View File

@ -162,6 +162,7 @@ jobs:
run: scripts/release-perform.sh
continue-on-error: true
env:
RELEASE_BRANCH_PATTERN: "release"
RELEASE_BRANCH_NAME: "main"
GIT_RELEASE_BOT_NAME: "nb-droid"
GIT_RELEASE_BOT_EMAIL: ${{ secrets.GIT_RELEASE_BOT_EMAIL }}

View File

@ -65,7 +65,7 @@ public class NBIO implements NBPathsAPI.Facets {
public static CSVParser readFileDelimCSV(String filename,char delim, String... searchPaths) {
Reader reader = NBIO.readReader(filename, searchPaths);
CSVFormat format = CSVFormat.newFormat(delim).withFirstRecordAsHeader();
CSVFormat format = CSVFormat.DEFAULT.withDelimiter(delim).withFirstRecordAsHeader();
try {
CSVParser parser = new CSVParser(reader, format);
return parser;

View File

@ -80,7 +80,9 @@ public class WeightedStringsFromCSV implements LongFunction<String> {
String value = csvdatum.get(valueColumn);
values.add(value);
String weight = csvdatum.get(weightColumn);
events.add(new EvProbD(values.size() - 1, Double.valueOf(weight)));
if(!weight.isEmpty()) {
events.add(new EvProbD(values.size() - 1, Double.valueOf(weight)));
}
}
}
}