From e123756ee93d727842eac6f17e149908bd6f9655 Mon Sep 17 00:00:00 2001 From: Florian Dupuy Date: Wed, 13 Dec 2023 16:42:50 +0100 Subject: [PATCH] Fix Signed-off-by: Florian Dupuy --- .../src/main/java/com/powsybl/dynawaltz/DynaWaltzContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzContext.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzContext.java index bc3936d35..c931279f3 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzContext.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/DynaWaltzContext.java @@ -80,8 +80,8 @@ public DynaWaltzContext(Network network, String workingVariantId, List uniqueIdsDynamicModels = Objects.requireNonNull(dynamicModels).stream() .filter(distinctByDynamicId(contextReporter).and(distinctByStaticId(contextReporter))); this.dynamicModels = dynaWaltzParameters.isUseModelSimplifiers() - ? uniqueIdsDynamicModels.toList() - : simplifyModels(uniqueIdsDynamicModels, contextReporter).toList(); + ? simplifyModels(uniqueIdsDynamicModels, contextReporter).toList() + : uniqueIdsDynamicModels.toList(); this.eventModels = Objects.requireNonNull(eventModels).stream() .filter(distinctByDynamicId(contextReporter))