Esempio n. 1
0
 def run(self):
 
     dataset_pool = SessionConfiguration().get_dataset_pool()
     
     establishments = dataset_pool.get_dataset('establishment')
     
     buildings = dataset_pool.get_dataset('building')
     
     unplaced = establishments.compute_variables("establishment.building_id==-1")
     index_unplaced = np.where(unplaced==1)[0]
     
     model = ScalingAgentsModel()
     
     model.run(buildings, establishments, index_unplaced)
Esempio n. 2
0
 def run(self):
 
     dataset_pool = SessionConfiguration().get_dataset_pool()
     
     households = dataset_pool.get_dataset('household')
     
     buildings = dataset_pool.get_dataset('building')
     
     unplaced = households.compute_variables("household.building_id==-1")
     index_unplaced = np.where(unplaced==1)[0]
     
     model = ScalingAgentsModel()
     
     model.run(buildings, households, index_unplaced)