From 37fdf2200920243a6f38f812763b335a0c932239 Mon Sep 17 00:00:00 2001 From: Maxim Moinat Date: Wed, 10 Jun 2020 21:32:26 +0200 Subject: [PATCH] read count as floored double --- .../main/java/org/ohdsi/rabbitInAHat/dataModel/Database.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/Database.java b/rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/Database.java index 486dae64..887262c7 100644 --- a/rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/Database.java +++ b/rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/Database.java @@ -260,7 +260,7 @@ private static ValueCounts getValueCounts(QuickAndDirtyXlsxReader workbook, Stri // If the count is not a number, ignore this row try { - valueCounts.add(value, Integer.parseInt(count)); + valueCounts.add(value, (int) Double.parseDouble(count)); } catch (NumberFormatException e) { // Skip if count could not be parsed. In most cases this is for empty count at 'List Truncated...' }