Skip to content

Commit

Permalink
forgot to call items() when looping over a dict
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeichlersmith committed Jul 12, 2024
1 parent 072bc4b commit 28fd696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Framework/python/ldmxcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def from_file(cls, source_file, class_name = None, needs = [], instance_name = N
print(f'done compiling {src}')

instance = cls(instance_name, class_name, str(lib))
for cfg_name, cfg_val in config_kwargs:
for cfg_name, cfg_val in config_kwargs.items():
setattr(instance, cfg_name, cfg_val)
return instance

Expand Down

0 comments on commit 28fd696

Please sign in to comment.