Skip to content

Commit

Permalink
fix param copying
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Sep 9, 2024
1 parent f0325f3 commit 33a3db6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neurodsp/sim/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,14 @@ class ParamIter(BaseUpdater):
def __init__(self, params, update, values, component=None):
"""Initialize parameter iteration object."""

BaseUpdater.__init__(self, params)

params = deepcopy(params)
if component is not None:
params['components'][component][update] = None
else:
params[update] = None

BaseUpdater.__init__(self, params)

self.update = update
self.values = values
self.component = component
Expand Down

0 comments on commit 33a3db6

Please sign in to comment.