Skip to content

Commit

Permalink
fixed major issue with code crashing when adding a model when global …
Browse files Browse the repository at this point in the history
…parameters are defined
  • Loading branch information
Jan-Torge Schindler committed Oct 25, 2021
1 parent 4f09faa commit 67b7ebf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sculptor/specmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,11 @@ def add_model(self, model_name, prefix, **kwargs):
model, params = model_setup_list[model_idx](prefix, **kwargs)

# Add global params to params

if self.global_params:
params.update(self.global_params)
for param in params:
for global_param in self.global_params:
param.add(global_param)

self._add_model(model, params)

Expand Down

0 comments on commit 67b7ebf

Please sign in to comment.