Skip to content

Commit

Permalink
Fix sensitivity fators
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkleiven committed Mar 7, 2024
1 parent d50312a commit 9009f8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/formItemHandlers/SensitivityFactorContainer.kt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}" }
}
Expand Down

0 comments on commit 9009f8e

Please sign in to comment.