From d6f1221b6abf9945f4b88211681cf09a410f34ed Mon Sep 17 00:00:00 2001 From: Ricardo Campos Date: Fri, 27 Sep 2024 17:39:28 -0300 Subject: [PATCH] fix: parent tree genetic value calculation fix --- .../ca/bc/gov/backendstartapi/service/ParentTreeService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 284928630..1a05562c3 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 @@ -93,7 +93,7 @@ public PtCalculationResDto calculatePtVals(PtValsCalReqDto ptVals) { parentPropOrchPoll = zero; } else { parentPropOrchPoll = - parentTreeRow.coneCount().divide(totalPollenCount, DIVISION_SCALE, halfUp); + parentTreeRow.pollenCount().divide(totalPollenCount, DIVISION_SCALE, halfUp); } // --col:X