def reset(self): ''' Reset the economy to prepare for a new simulation. Sets the time index of aggregate shocks to zero and runs Market.reset(). Parameters ---------- none Returns ------- none ''' self.Shk_idx = 0 Market.reset(self)
def reset(self): ''' Reset the economy to prepare for a new simulation. Sets the time index of aggregate shocks to zero and runs Market.reset(). This replicates the reset method for CobbDouglasEconomy; future version should create parent class of that class and this one. Parameters ---------- None Returns ------- None ''' self.Shk_idx = 0 Market.reset(self)