Skip to content

Commit

Permalink
Merge pull request #1 from hdoupe/pandas_update
Browse files Browse the repository at this point in the history
Set state for all parameters
  • Loading branch information
jdebacker authored Jan 5, 2021
2 parents 0ad39e1 + f75d6b7 commit 327459e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions taxcalc/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ def adjust_with_indexing(self, params_or_path, **kwargs):
# Re-instate ops.
self.label_to_extend = label_to_extend
self.array_first = array_first
self.set_state()

# Filter out "-indexed" params.
nonindexed_params = {
Expand All @@ -432,10 +433,6 @@ def adjust_with_indexing(self, params_or_path, **kwargs):
if param not in index_affected
}

needs_reset = set(needs_reset) - set(nonindexed_params.keys())
if needs_reset:
self._set_state(params=needs_reset)

# 3. Do adjustment for all non-indexing related parameters.
adj = super().adjust(nonindexed_params, **kwargs)

Expand Down

0 comments on commit 327459e

Please sign in to comment.