Skip to content

Commit 220b537

Browse files
committed
Fix issue with sample number
1 parent 7e512fb commit 220b537

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/genepi/imputationserver/util/RefPanelPopulation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public static List<RefPanelPopulation> fromProperties(List<Map<String, Object>>
5252
throw new IOException("Property 'name' not found in population list.");
5353
}
5454
if (property.containsKey("samples")) {
55-
population.setSamples(Integer.parseInt(property.get("samples").toString()));
55+
Double samples = Double.parseDouble(property.get("samples").toString());
56+
population.setSamples(samples.intValue());
5657
} else {
5758
throw new IOException("Property 'samples' not found in population list.");
5859
}

0 commit comments

Comments
 (0)