Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <[email protected]>
  • Loading branch information
flo-dup committed Dec 13, 2023
1 parent 7aab005 commit e123756
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public DynaWaltzContext(Network network, String workingVariantId, List<BlackBoxM
Stream<BlackBoxModel> 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))
Expand Down

0 comments on commit e123756

Please sign in to comment.