Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Aug 14, 2024
1 parent 13ab801 commit bc5e40c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions mflike/foreground.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,13 @@ class ForegroundParamsTheory(Theory):
@classmethod
def get_class_options(cls, input_options={}):
options = super().get_class_options().copy()
param_requested_cls = input_options.get(
'requested_cls') or options.get('requested_cls', ['tt', 'te', 'ee'])
params = yaml_load(cls.get_text_file_content('params_common.yaml'))
for spec in param_requested_cls:
params |= yaml_load(cls.get_text_file_content('params_%s.yaml' % spec.upper()))
options["params"] = params
if cls is ForegroundParamsTheory: # only add params once
param_requested_cls = input_options.get(
'requested_cls') or options.get('requested_cls', ['tt', 'te', 'ee'])
params = yaml_load(cls.get_text_file_content('params_common.yaml'))
for spec in param_requested_cls:
params |= yaml_load(cls.get_text_file_content('params_%s.yaml' % spec.upper()))
options["params"] = params
return options


Expand Down

0 comments on commit bc5e40c

Please sign in to comment.