def dependencies(self):
     return [
         my_attribute_label(self.number_of_industrial_jobs),
         my_attribute_label(self.industrial_sqft_within_walking_distance),
         my_attribute_label(self.number_of_industrial_jobs_wwd),
         my_attribute_label(self.industrial_sqft)
     ]
 def dependencies(self):
     return [
         my_attribute_label(self.number_of_industrial_jobs),
         my_attribute_label(self.industrial_sqft_within_walking_distance),
         my_attribute_label(self.number_of_industrial_jobs_wwd),
         my_attribute_label(self.industrial_sqft),
     ]
Ejemplo n.º 3
0
 def dependencies(self):
     return [
         my_attribute_label(
             self.number_of_home_owners_within_walking_distance),
         my_attribute_label(
             self.number_of_households_within_walking_distance)
     ]
Ejemplo n.º 4
0
 def dependencies(self):
     return [
         my_attribute_label(self.has_0_industrial_sqft),
         my_attribute_label(self.has_0_commercial_sqft),
         my_attribute_label(self.has_0_governmental_sqft),
         my_attribute_label(self.has_0_residential_units)
     ]
 def dependencies(self):
     deps = [my_attribute_label("x_coord_sp"),
             my_attribute_label("y_coord_sp"),
             self.quantity
             ]
     if self.filter is not None:
         deps.append(self.filter)
     return deps
Ejemplo n.º 6
0
 def dependencies(self):
     return [
             "_units_proposed_in_proposal = development_project_proposal_component.disaggregate(urbansim_parcel.development_project_proposal.units_proposed)",
             "_is_far_unit = development_project_proposal_component.disaggregate(urbansim_parcel.development_template.is_far)",
              my_attribute_label("percent_building_sqft"),
              my_attribute_label("building_sqft_per_unit"),
              my_attribute_label("is_residential")
             ]
Ejemplo n.º 7
0
 def dependencies(self):
     return [
         attribute_label("employment_sector_group", "group_id"),
         attribute_label("employment_sector_group", self.gr_name),
         my_attribute_label(self.sector_id),
         attribute_label("employment_sector", "sector_id")
     ]
 def dependencies(self):
     return [
         attribute_label("job", self.job_is_in_employment_sector_group),
         attribute_label("job", "is_home_based_job"),
         attribute_label("job", "grid_id"),
         my_attribute_label("grid_id")
     ]
 def dependencies(self):
     return [
         my_attribute_label(
             self.
             total_residential_value_per_residential_unit_within_walking_distance
         )
     ]
 def dependencies(self):
     return [
         my_attribute_label("household_id"),
         attribute_label("person", "work_nonhome_based"),
         "psrc.person.work_place_zone_id",
         attribute_label("person", "household_id"),
     ]
 def dependencies(self):
     return [
         attribute_label("development_group", "group_id"),
         attribute_label("development_group", self.gr_name),
         my_attribute_label(self.development_type_id),
         attribute_label("development_type", "development_type_id"),
     ]
 def dependencies(self):
     return [
         my_attribute_label(self.number_of_buildings),
         attribute_label("building", self.building_age),
         attribute_label("building", self.is_building_type),
         attribute_label("building", "grid_id")
     ]
 def dependencies(self):
     return [
         attribute_label("gridcell", "region_id"),
         attribute_label("gridcell",
                         "percent_open_space_within_walking_distance"),
         my_attribute_label("region_id")
     ]
 def dependencies(self):
     return [
         attribute_label("development_group", "group_id"),
         attribute_label("development_group", self.gr_name),
         my_attribute_label(self.development_type_id),
         attribute_label("development_type", "development_type_id")
     ]
Ejemplo n.º 15
0
 def dependencies(self):
     return [
         attribute_label("gridcell", "number_of_jobs"),
         attribute_label("gridcell", "acres_of_land"),
         attribute_label("gridcell", "faz_id"),
         my_attribute_label("faz_id")
     ]
 def dependencies(self):
     return [
             my_attribute_label("units_proposed"),
             "velocity_functions = velocity_function.annual_construction_schedule",
             "minimum_units = velocity_function.minimum_units",
             "maximum_units = velocity_function.maximum_units"
             ]
Ejemplo n.º 17
0
 def dependencies(self):
     return [
         attribute_label("gridcell", "region_id"),
         attribute_label("gridcell", "population"),
         attribute_label("gridcell", "is_outside_urban_growth_boundary"),
         my_attribute_label("region_id")
     ]
 def dependencies(self):
     return [
         my_attribute_label("units_proposed"),
         "velocity_functions = velocity_function.annual_construction_schedule",
         "minimum_units = velocity_function.minimum_units",
         "maximum_units = velocity_function.maximum_units"
     ]
 def dependencies(self):
     return [
         attribute_label("job", self.job_is_in_employment_sector_group),
         attribute_label("job", "job_id"),
         attribute_label("job", "grid_id"),
         my_attribute_label("grid_id"),
     ]
Ejemplo n.º 20
0
 def dependencies(self):
     return [
         attribute_label("plan_type_group", "group_id"),
         attribute_label("plan_type_group", "name"),
         attribute_label("plan_type", "plan_type_id"),
         my_attribute_label("plan_type_id")
     ]
 def dependencies(self):
     return [
         my_attribute_label(self.number_of_industrial_jobs),
         "%s = zone.aggregate(gridcell.industrial_sqft, function=sum)" %
         self.industrial_sqft,
         "%s = zone.aggregate(gridcell.industrial_sqft_per_job, function=mean)"
         % self.sqft
     ]
Ejemplo n.º 22
0
 def dependencies(self):
     
     return [attribute_label("gridcell", 'is_in_plan_type_group_%s' % self.group),
             attribute_label("gridcell", 'is_in_plan_type_group_%s' % self.group),
             attribute_label("gridcell", 'total_land_value_if_in_plan_type_group_%s' % self.group),
             "total_%s_land_value = large_area.aggregate(gridcell.total_land_value_if_in_plan_type_group_%s, intermediates=[zone, faz])" % (self.group,self.group),
             "number_of_%s_gridcells = large_area.aggregate(gridcell.is_in_plan_type_group_%s, intermediates=[zone, faz])" % (self.group, self.group), 
             my_attribute_label("large_area_id")]
Ejemplo n.º 23
0
 def dependencies(self):
     
     return [attribute_label("gridcell", 'is_in_plan_type_group_%s' % self.group),
             attribute_label("gridcell", 'is_in_plan_type_group_%s' % self.group),
             attribute_label("gridcell", 'total_land_value_if_in_plan_type_group_%s' % self.group),
             "total_%s_land_value = large_area.aggregate(gridcell.total_land_value_if_in_plan_type_group_%s, intermediates=[zone, faz])" % (self.group,self.group),
             "number_of_%s_gridcells = large_area.aggregate(gridcell.is_in_plan_type_group_%s, intermediates=[zone, faz])" % (self.group, self.group), 
             my_attribute_label("large_area_id")]
Ejemplo n.º 24
0
 def compute(self, dataset_pool):
     bt = dataset_pool.get_dataset('building_type')
     ds = self.get_dataset()
     idx = bt.get_attribute("name") == self.type
     units_name = bt.get_attribute("units")[idx][0]
     dependent_variable = my_attribute_label("developable_maximum_%s" % units_name)
     if dependent_variable not in self.dependencies():
         ds.compute_variables([dependent_variable])
         self.add_dependencies([dependent_variable])
     return clip_to_zero_if_needed(ds.get_attribute(dependent_variable), "developable_%s_capacity" % self.type)
Ejemplo n.º 25
0
 def compute(self, dataset_pool):
     zones = self.get_dataset()
     is_in_cbd = zones.get_attribute('bellevue_cbd')
     zones_in_cbd = zones.get_id_attribute()[where(is_in_cbd)]
     min_values = array(zones.size()*[2**30], dtype=self._return_type)
     for zone_id in zones_in_cbd:
         variable_name = my_attribute_label("generalized_cost_hbw_am_drive_alone_to_%s" % zone_id)
         self.add_and_solve_dependencies([variable_name], dataset_pool=dataset_pool)
         min_values = minimum(min_values, zones.get_attribute(variable_name))
     min_within_cbd = min_values[where(is_in_cbd)].min()
     min_values[where(is_in_cbd)] = min_within_cbd
     return min_values
 def compute(self, dataset_pool):
     bt = dataset_pool.get_dataset('building_type')
     ds = self.get_dataset()
     idx = bt.get_attribute("name") == self.type
     units_name = bt.get_attribute("units")[idx][0]
     dependent_variable = my_attribute_label("developable_maximum_%s" %
                                             units_name)
     if dependent_variable not in self.dependencies():
         ds.compute_variables([dependent_variable])
         self.add_dependencies([dependent_variable])
     return clip_to_zero_if_needed(ds.get_attribute(dependent_variable),
                                   "developable_%s_capacity" % self.type)
 def compute(self, dataset_pool):
     zones = self.get_dataset()
     is_in_cbd = zones.get_attribute('bellevue_cbd')
     zones_in_cbd = zones.get_id_attribute()[where(is_in_cbd)]
     min_values = array(zones.size() * [2**30], dtype=self._return_type)
     for zone_id in zones_in_cbd:
         variable_name = my_attribute_label(
             "generalized_cost_hbw_am_drive_alone_to_%s" % zone_id)
         self.add_and_solve_dependencies([variable_name],
                                         dataset_pool=dataset_pool)
         min_values = minimum(min_values,
                              zones.get_attribute(variable_name))
     min_within_cbd = min_values[where(is_in_cbd)].min()
     min_values[where(is_in_cbd)] = min_within_cbd
     return min_values
Ejemplo n.º 28
0
 def dependencies(self):
     return [my_attribute_label(self.number_of_low_income_households_within_walking_distance), 
             my_attribute_label(self.number_of_households_within_walking_distance)]
Ejemplo n.º 29
0
 def dependencies(self):
     return [my_attribute_label("job_id"),
             "person.job_id", "person.person_id"]
Ejemplo n.º 30
0
 def dependencies(self):
     return [my_attribute_label("zone_id"), 
             attribute_label("zone", self.zn_ln_access_to_workplaces_from_residences)]
Ejemplo n.º 31
0
 def dependencies(self):
     return [
         my_attribute_label("faz_id"),
         attribute_label("faz", "large_area_id")
     ]
 def dependencies(self):
     return [my_attribute_label('number_of_surveyed_households')]
Ejemplo n.º 33
0
 def dependencies(self):
     #resource and construction sectors are hard-coded as sector 1 and 2
     return ["urbansim.zone." + self.variable_name,
             my_attribute_label("baseline_%s" % self.variable_name)]
Ejemplo n.º 34
0
 def dependencies(self):
     return [my_attribute_label(self.number_of_households), my_attribute_label(self.low_income)]
 def dependencies(self):
     return [my_attribute_label("zone_id"), "psrc.zone." + self.variable_name]
Ejemplo n.º 36
0
 def dependencies(self):
     return [my_attribute_label('household_id'), 
             'psrc.household.grid_id']
Ejemplo n.º 37
0
 def dependencies(self):
     return [my_attribute_label("zone_id"), \
             "psrc.zone.trip_weighted_average_generalized_cost_hbw_to_work_am_drive_alone"]
Ejemplo n.º 38
0
 def dependencies(self):
     return [attribute_label("gridcell", "zone_id"), 
             my_attribute_label("zone_id")]
Ejemplo n.º 39
0
 def dependencies(self):
     return [
         my_attribute_label(self.year_built),
         my_attribute_label("has_valid_year_built")
     ]
Ejemplo n.º 40
0
 def dependencies(self):
     return [my_attribute_label(self.same_sector_jobs_in_faz)]
Ejemplo n.º 41
0
 def dependencies(self):
     return [my_attribute_label(self.age_of_head)]
 def dependencies(self):
     return [
         my_attribute_label("home_parcel_id"),
         my_attribute_label("work_place_parcel_id"),
         "transit_accessibility.edge.target",
     ]
Ejemplo n.º 43
0
 def dependencies(self):
     return [my_attribute_label("household_id"), 
             "psrc.household.parcel_id"]
Ejemplo n.º 44
0
 def dependencies(self):
     return [my_attribute_label("is_minority")]
Ejemplo n.º 45
0
 def dependencies(self):
     return [
         my_attribute_label("x_coord_sp"),
         my_attribute_label("y_coord_sp")
     ]
Ejemplo n.º 46
0
 def dependencies(self):
     return [my_attribute_label(self.income)]
Ejemplo n.º 47
0
 def dependencies(self):
     return [
         attribute_label("land_use_type", "land_use_name"),
         my_attribute_label("land_use_type_id")
     ]
Ejemplo n.º 48
0
 def dependencies(self):
     return [my_attribute_label(self.residential_units)]
Ejemplo n.º 49
0
 def dependencies(self):
     return [my_attribute_label(self.total_nonresidential_sqft_wwd)]
 def dependencies(self):
     #resource and construction sectors are hard-coded as sector 1 and 2
     return [
         "urbansim.faz." + self.variable_name,
         my_attribute_label("baseline_%s" % self.variable_name)
     ]
Ejemplo n.º 51
0
 def dependencies(self):
     return [my_attribute_label(self.total_residential_value_per_residential_unit_within_walking_distance)]
Ejemplo n.º 52
0
 def dependencies(self):
     return [my_attribute_label("zone_id"), \
             "psrc.zone.trip_weighted_average_time_hbw_from_home_am_bike"]
Ejemplo n.º 53
0
 def dependencies(self):
     return [my_attribute_label("bususe")]
Ejemplo n.º 54
0
 def dependencies(self):
     return [my_attribute_label(self.total_residential_value), 
             my_attribute_label(self.total_nonresidential_value)]
 def dependencies(self):
     return [my_attribute_label(self.year_built)]
 def dependencies(self):
     return [attribute_label("household", self.is_mid_income), 
             attribute_label("household", "grid_id"), 
             my_attribute_label("grid_id")]
Ejemplo n.º 57
0
 def dependencies(self):
     return [
         my_attribute_label("residential_units"),
         my_attribute_label(self.condition1),
         my_attribute_label(self.condition2),
     ]
Ejemplo n.º 58
0
 def dependencies(self):
     return [my_attribute_label(self.total_improvement_value_within_walking_distance),
             my_attribute_label(self.residential_units_within_walking_distance)]
 def dependencies(self):
     return [
         my_attribute_label("grid_id"),
         attribute_label("gridcell", "zone_id")
     ]
Ejemplo n.º 60
0
 def dependencies(self):
     return [
         attribute_label("job", "grid_id"),
         my_attribute_label("grid_id")
     ]