From 834d408e66eda2f19ea47e9a29e85ad817264864 Mon Sep 17 00:00:00 2001 From: sb Date: Wed, 7 Feb 2024 08:45:44 -0500 Subject: [PATCH] formating fixes --- HARK/ConsumptionSaving/ConsIndShockModel.py | 7 +++---- HARK/ConsumptionSaving/tests/test_IndShockConsumerType.py | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/HARK/ConsumptionSaving/ConsIndShockModel.py b/HARK/ConsumptionSaving/ConsIndShockModel.py index 8cead22f6..1d80b1362 100644 --- a/HARK/ConsumptionSaving/ConsIndShockModel.py +++ b/HARK/ConsumptionSaving/ConsIndShockModel.py @@ -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( @@ -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( @@ -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 diff --git a/HARK/ConsumptionSaving/tests/test_IndShockConsumerType.py b/HARK/ConsumptionSaving/tests/test_IndShockConsumerType.py index 81dc92da9..45a202259 100644 --- a/HARK/ConsumptionSaving/tests/test_IndShockConsumerType.py +++ b/HARK/ConsumptionSaving/tests/test_IndShockConsumerType.py @@ -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)