Skip to content

Commit

Permalink
Merge pull request #19 from flowerthrower/fix_method_params
Browse files Browse the repository at this point in the history
Bugfix for method_params
  • Loading branch information
ajgpitch authored May 8, 2024
2 parents 31ec5fa + 0601ea8 commit abf2034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qutip_qtrl/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def apply_method_params(self, params=None):
val = params[key]
if hasattr(self, key):
setattr(self, key, val)
if hasattr(self.termination_conditions, key):
elif hasattr(self.termination_conditions, key):
setattr(self.termination_conditions, key, val)
else:
unused_params[key] = val
Expand Down

0 comments on commit abf2034

Please sign in to comment.