Skip to content

Commit

Permalink
only open sc builder when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Sep 30, 2024
1 parent e0f1c79 commit bf08cce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def _apply(self, study_data: FileStudy) -> CommandOutput:
old_groups = {bd.get("group", DEFAULT_GROUP).lower() for bd in binding_constraints.values()}
new_groups = {bd.get("group", DEFAULT_GROUP).lower() for bd in new_binding_constraints.values()}
removed_groups = old_groups - new_groups
remove_bc_from_scenario_builder(study_data, removed_groups)
if removed_groups:
remove_bc_from_scenario_builder(study_data, removed_groups)

return self._apply_config(study_data.config)[0]

Expand Down

0 comments on commit bf08cce

Please sign in to comment.