Beispiel #1
0
 def run_one_market(self, dp):
     try:
         bid_file_tag                                 = dt.strftime(dp, "%Y-%m-%d_%H-%M-%S")
         market                                         = Market(dp, bid_file_tag, "N/A", self.use_dynamic_timestep, printing_mode=False,timeslot_length=self.timestep)
         market.alternative_runner()
         
         # Collect the stats
         self.stats.append(market.get_stats())
         
         # Clean up
         del market
     except:
         print(dp, "Could not run market properly...")
     
     finally:
         return dp