diff --git a/backend/src/main/java/ca/bc/gov/backendstartapi/service/ParentTreeService.java b/backend/src/main/java/ca/bc/gov/backendstartapi/service/ParentTreeService.java index ccfb989c0..e0d4b74ca 100644 --- a/backend/src/main/java/ca/bc/gov/backendstartapi/service/ParentTreeService.java +++ b/backend/src/main/java/ca/bc/gov/backendstartapi/service/ParentTreeService.java @@ -57,7 +57,7 @@ public PtCalculationResDto calculatePtVals(PtValsCalReqDto ptVals) { ptVals.smpMixIdAndProps().size()); final BigDecimal zero = BigDecimal.ZERO; - + // First pass BigDecimal varTotalConeCount = zero; BigDecimal varTotalPollenCount = zero; @@ -190,7 +190,7 @@ private GeospatialRespondDto calcMeanGeospatial( // Definition: weighted value = proportion * value BigDecimal proportion = dto.proportion(); - if (proportion.compareTo(ONE) >= 0) { + if (proportion.compareTo(ONE) > 0) { throw new ResponseStatusException( HttpStatus.BAD_REQUEST, String.format(