Fixed Bionym Local empty value error

This commit is contained in:
Giancarlo Panichi 2021-10-07 12:26:23 +02:00
parent 54f7fe5654
commit cf6b884527
1 changed files with 9 additions and 2 deletions

View File

@ -52,11 +52,18 @@ public class YasmeenFileTools {
int i=0;
// SOURCE_DATASOURCE_ID SOURCE_ID SOURCE_DATA PRE_PARSED_SOURCE_DATA PARSED_SCIENTIFIC_NAME PARSED_AUTHORITY PARSER POST_PARSED_SCIENTIFIC_NAME POST_PARSED_AUTHORITY MATCHING_SCORE TARGET_DATA_SOURCE TARGET_DATA_ID TARGET_DATA_SCIENTIFIC_NAME TARGET_DATA_AUTHORITY TARGET_DATA_KINGDOM TARGET_DATA_PHYLUM TARGET_DATA_CLASS TARGET_DATA_ORDER TARGET_DATA_FAMILY TARGET_DATA_GENUS TARGET_DATA_SPECIES TARGET_DATA_VERNACULAR_NAMES
while (line!=null){
AnalysisLogger.getLogger().debug("Yasmeen Output line:"+line);
AnalysisLogger.getLogger().debug("Yasmeen Output line: "+line);
List<String> tokens = Transformations.parseCVSString(line, ";");
if (tokens.size()>0){
Double d=new Double(0);
try {
d=Double.parseDouble(tokens.get(9));
} catch (Exception e) {
AnalysisLogger.getLogger().debug("Invalid value: "+tokens.get(9));
}
output.addEntry(i,tokens.get(2),tokens.get(7),tokens.get(8),
Double.parseDouble(tokens.get(9)),tokens.get(10),tokens.get(11),tokens.get(12),tokens.get(13),null);
d,tokens.get(10),tokens.get(11),tokens.get(12),tokens.get(13),null);
}
line = br.readLine();
i++;