Skip to content

Commit

Permalink
Use current solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Rastislav Turanyi committed Jan 17, 2025
1 parent 24ab899 commit 536950a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/resolution_functions/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@ def available_models_and_configurations(self) -> dict[str, list[str]]:
models_and_configurations
All models and all their configurations.
"""
return {model_name: list(model['configurations'].keys())
for model_name, model in self._models.items()}
return {model_name: list(self._resolve_model(model_name)['configurations'].keys())
for model_name in self._models.keys()}

@property
def all_available_models_options(self) -> dict[str, dict[str, list[str]]]:
Expand All @@ -686,8 +686,8 @@ def all_available_models_options(self) -> dict[str, dict[str, list[str]]]:
All models, all their configurations, and all their options.
"""
return {model_name: {config: self._get_options(value)
for config, value in list(model['configurations'].items())}
for model_name, model in self._models.items()}
for config, value in list(self._resolve_model(model_name)['configurations'].items())}
for model_name in self._models.keys()}

def possible_configurations_for_model(self, model_name: str) -> list[str]:
"""
Expand Down

0 comments on commit 536950a

Please sign in to comment.