Changeset 3298

Show
Ignore:
Timestamp:
05/03/08 12:45:54 (3 months ago)
Author:
hana
Message:

(hana) dependencies on other packages removed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/opus_core/allocation_model.py

    r3239 r3298  
    117117        job_data = { 
    118118            'job_id': arange(10)+1, 
    119             'building_id':        array([170, 145, 10, 180, 179, 50, 23, 77, 800, 2]), 
    120                         # zones          2,    3,   2,   1,  1,   1,  3,  2,  2,  3 
     119             'zone_id': array([          2,    3,   2,   1,  1,   1,  3,  2,  2,  3]), 
    121120            'allocation_weights': array([1,    3,   5,   2,  1,   4,  7,  9,  8,  2]), 
    122121            'job_sqft_capacity':  array([3000,2800,1000,550,600,1000,2000,500,100,1000]) 
    123122        } 
    124         building_data = { 
    125             'building_id': array([170, 145, 10, 180, 179, 50, 23, 77, 800, 2]), 
    126             'zone_id':     array([2,    3,  2,   1,   1,   1,  3,  2,  2,  3]) 
    127             } 
    128123        control_total_data = { 
    129124            'year': array([2005,2005,2005,2006, 2006, 2006]), 
     
    132127                          } 
    133128        storage = StorageFactory().get_storage('dict_storage') 
    134         storage.write_table(table_name = 'zones', table_data = zone_data) 
    135         storage.write_table(table_name = 'buildings', table_data = building_data) 
    136         storage.write_table(table_name = 'jobs', table_data = job_data) 
     129        storage.write_table(table_name = 'zone', table_data = zone_data) 
     130        storage.write_table(table_name = 'job', table_data = job_data) 
    137131        storage.write_table(table_name = 'control_totals', table_data = control_total_data) 
    138         self.dataset_pool = DatasetPool(storage = storage, package_order = ['urbansim_parcel', 'urbansim']) 
     132        self.dataset_pool = DatasetPool(storage = storage, package_order = ['opus_core']) 
    139133        self.ct = Dataset(in_storage=storage, in_table_name='control_totals', id_name=['year', 'zone_id'], dataset_name='control_total') 
    140134        self.jobs = self.dataset_pool.get_dataset('job')