Skip to content

Commit

Permalink
make dict copy
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlujan91 committed Jul 24, 2023
1 parent 42377c6 commit 256fe9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HARK/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def __init__(self, **parameters):
Any number of keyword arguments of the form key=value.
To parse a dictionary of parameters, use the ** operator.
"""
self._term_age = parameters.pop("T_cycle", None)
params = parameters.copy()
self._term_age = params.pop("T_cycle", None)
self._age_inv = set()
self._age_var = set()
self._parameters = {}
Expand Down

0 comments on commit 256fe9a

Please sign in to comment.