From d88110ed49a3c55a6413112214ef0aad27678440 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Thu, 14 Dec 2017 11:41:14 +0300 Subject: [PATCH] A lot of minor fixes. Moving some code to kotlin --- numass-main/src/main/kotlin/inr/numass/scripts/InversedChain.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numass-main/src/main/kotlin/inr/numass/scripts/InversedChain.kt b/numass-main/src/main/kotlin/inr/numass/scripts/InversedChain.kt index 2a2d97e3..dfb45ef8 100644 --- a/numass-main/src/main/kotlin/inr/numass/scripts/InversedChain.kt +++ b/numass-main/src/main/kotlin/inr/numass/scripts/InversedChain.kt @@ -93,7 +93,7 @@ fun main(args: Array) { meta ).withBinning(binning) - val defaultFilteredNorming = filtered.getColumn(COUNT_RATE_KEY).stream().mapToDouble{it.doubleValue()}.sum() + val defaultFilteredNorming = defaultFiltered.getColumn(COUNT_RATE_KEY).stream().mapToDouble{it.doubleValue()}.sum() println("The norming factor for default filtered count rate is $defaultFilteredNorming")