@@ -456,7 +456,7 @@ def __init__(
456
456
self .initial = initial
457
457
458
458
self .seed = seed # NOQA
459
- self .agent_count = agent_count # TODO: pass this in at block level
459
+ self .agent_count = agent_count # TODO: pass this in at block level
460
460
self .T_sim = T_sim
461
461
462
462
# changes here from HARK.core.AgentType
@@ -534,20 +534,20 @@ def sim_one_period(self):
534
534
535
535
shocks_now = draw_shocks (
536
536
self .shocks ,
537
- np .zeros (self .agent_count ) # TODO: stupid hack to remove age calculations.
538
- # this needs a little more thought
539
- )
537
+ np .zeros (self .agent_count ), # TODO: stupid hack to remove age calculations.
538
+ # this needs a little more thought
539
+ )
540
540
541
- pre = self .calibration # for AgentTypeMC, this is conditional on age
542
- # TODO: generalize indexing into calibration.
541
+ pre = self .calibration # for AgentTypeMC, this is conditional on age
542
+ # TODO: generalize indexing into calibration.
543
543
544
544
pre .update (self .vars_prev )
545
545
pre .update (shocks_now )
546
546
547
547
# Won't work for 3.8: self.parameters | self.vars_prev | shocks_now
548
-
549
- dr = self .dr # AgentTypeMC chooses rule by age;
550
- # that generalizes to age as a DR argument?
548
+
549
+ dr = self .dr # AgentTypeMC chooses rule by age;
550
+ # that generalizes to age as a DR argument?
551
551
552
552
post = simulate_dynamics (self .dynamics , pre , dr )
553
553
@@ -570,7 +570,7 @@ def sim_birth(self, which_agents):
570
570
-------
571
571
None
572
572
"""
573
-
573
+
574
574
initial_vals = draw_shocks (self .initial , np .zeros (which_agents .sum ()))
575
575
576
576
if np .sum (which_agents ) > 0 :
@@ -636,4 +636,4 @@ def clear_history(self):
636
636
"""
637
637
for var_name in self .vars :
638
638
self .history [var_name ] = np .empty ((self .T_sim , self .agent_count ))
639
- self .history [var_name ].fill (np .nan )
639
+ self .history [var_name ].fill (np .nan )
0 commit comments