Skip to content

Commit

Permalink
temporary fix to keep backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstangl committed Dec 14, 2023
1 parent 499a7e5 commit 417b8fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wilson/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ def set_option(self, key, value):
Instance method, affects only current instance.
This will clear the cache."""
####################################################################
### temporary fix to keep backwards compatibility after renaming ###
### of 'delta' to 'gamma' in the parameters dictionary ###
####################################################################
if key == 'parameters' and 'delta' in value:
value['gamma'] = value['delta']
#####################################################################
self._options.update(self._option_schema({key: value}))
self.clear_cache()

Expand Down

0 comments on commit 417b8fe

Please sign in to comment.