Skip to content

Commit

Permalink
fix for non-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Stahl committed Jun 27, 2022
1 parent a995f01 commit cf20fc0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mlonmcu/models/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,10 @@ def apply_modelgroups(models, context=None):
)
groups[group.name] = group.models

models = [m for model in models for m in groups[model]]
return list(dict.fromkeys(models)) # Drop duplicates
out_models = []
for model in models:
out_models.extend(groups.get(model, [model]))
return list(dict.fromkeys(out_models)) # Drop duplicates


def map_frontend_to_model(model, frontends, backend=None):
Expand Down

1 comment on commit cf20fc0

@PhilippvK
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already had the feeling that something is missing.

Please sign in to comment.