From 9009f8e146ec435ee6957c2e11bde0f8fe88410c Mon Sep 17 00:00:00 2001 From: David Kleiven Date: Thu, 7 Mar 2024 17:33:47 +0100 Subject: [PATCH] Fix sensitivity fators --- src/main/formItemHandlers/SensitivityFactorContainer.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/formItemHandlers/SensitivityFactorContainer.kt b/src/main/formItemHandlers/SensitivityFactorContainer.kt index fa15f64..27656c1 100644 --- a/src/main/formItemHandlers/SensitivityFactorContainer.kt +++ b/src/main/formItemHandlers/SensitivityFactorContainer.kt @@ -1,5 +1,6 @@ package com.github.statnett.loadflowservice.formItemHandlers +import com.github.statnett.loadflowservice.formItemHandlers.FormItemNames.Companion.SENSITIVITY_FACTORS import com.powsybl.contingency.ContingencyContext import com.powsybl.contingency.ContingencyContextType import com.powsybl.sensitivity.SensitivityFactor @@ -49,7 +50,7 @@ class SensitivityFactorContainer : FormItemLoadable { override fun formItemHandler(part: PartData.FormItem) { val name = part.name ?: "" - if (name == "sensitivity-factors") { + if (name == SENSITIVITY_FACTORS) { this.update(part.value) logger.info { "Received sensitivity factors parameters: ${part.value}" } }