From 96633454578f91429cf42279e9c6f447ad8bf188 Mon Sep 17 00:00:00 2001 From: HARPER Jon Date: Wed, 30 Aug 2023 10:36:45 +0200 Subject: [PATCH] Remove deprecated checkActivePowerLimits call (fixup from powsybl 4.7 migration) Signed-off-by: HARPER Jon --- .../java/com/powsybl/network/store/iidm/impl/BatteryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/BatteryImpl.java b/network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/BatteryImpl.java index 2bcff7bc4..6a18e939e 100644 --- a/network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/BatteryImpl.java +++ b/network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/BatteryImpl.java @@ -95,7 +95,7 @@ public double getMaxP() { @Override public Battery setMaxP(double maxP) { ValidationUtil.checkMaxP(this, maxP); - ValidationUtil.checkActivePowerLimits(this, getMinP(), maxP, getTargetP()); + ValidationUtil.checkActivePowerLimits(this, getMinP(), maxP); double oldValue = getResource().getAttributes().getMaxP(); if (maxP != oldValue) { updateResource(res -> res.getAttributes().setMaxP(maxP));