Ejemplo n.º 1
0
def residential_developer(feasibility, households, buildings, parcels, year):
    utils_drcog.run_developer(
        ["residential", "mixedresidential"],
        households,
        buildings,
        "residential_units",
        parcels.parcel_size,
        parcels.ave_res_unit_size,
        parcels.total_units,
        feasibility,
        year=year,
        target_vacancy=0.20,
        form_to_btype_callback=random_type,
        add_more_columns_callback=add_extra_columns,
        bldg_sqft_per_job=400.0,
        price_col="unit_price_residential",
    )
Ejemplo n.º 2
0
def non_residential_developer(feasibility, establishments, buildings, parcels, year):
    employees = establishments.employees
    agents = employees.ix[np.repeat(employees.index.values, employees.values)]
    utils_drcog.run_developer(
        ["office", "retail", "industrial"],
        agents,
        buildings,
        "non_residential_units",
        parcels.parcel_size,
        parcels.ave_non_res_unit_size,
        parcels.total_job_spaces,
        feasibility,
        year=year,
        target_vacancy=0.50,
        form_to_btype_callback=random_type,
        add_more_columns_callback=add_extra_columns_non_res,
        residential=False,
        bldg_sqft_per_job=400.0,
        price_col="unit_price_non_residential",
    )