Skip to content

Commit

Permalink
formating fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenthall committed Feb 7, 2024
1 parent 3a2b560 commit 834d408
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions HARK/ConsumptionSaving/ConsIndShockModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3742,7 +3742,7 @@ def construct_lognormal_income_process_unemployment(self):
"IncUnemp": IncUnemp_list,
},
RNG=self.RNG,
seed=self.RNG.integers(0, 2**31 - 1)
seed=self.RNG.integers(0, 2**31 - 1),
)

PermShkDstn = IndexDistribution(
Expand All @@ -3753,7 +3753,7 @@ def construct_lognormal_income_process_unemployment(self):
"neutral_measure": neutral_measure_list,
},
RNG=self.RNG,
seed=self.RNG.integers(0, 2**31 - 1)
seed=self.RNG.integers(0, 2**31 - 1),
)

TranShkDstn = IndexDistribution(
Expand All @@ -3765,8 +3765,7 @@ def construct_lognormal_income_process_unemployment(self):
"n_approx": TranShkCount_list,
},
RNG=self.RNG,
seed=self.RNG.integers(0, 2**31 - 1)

seed=self.RNG.integers(0, 2**31 - 1),
)

return IncShkDstn, PermShkDstn, TranShkDstn
Expand Down
4 changes: 2 additions & 2 deletions HARK/ConsumptionSaving/tests/test_IndShockConsumerType.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def test_simulated_values(self):
# self.assertAlmostEqual(self.agent.state_now["aLvl"][1], 0.18438, place = HARK_PRECISION)

def test_income_dist_random_seeds(self):
a1 = IndShockConsumerType(seed = 1000)
a2 = IndShockConsumerType(seed = 200)
a1 = IndShockConsumerType(seed=1000)
a2 = IndShockConsumerType(seed=200)

self.assertFalse(a1.PermShkDstn.seed == a2.PermShkDstn.seed)

Expand Down

0 comments on commit 834d408

Please sign in to comment.