def requires(self): return { 'level': USLevelHierarchy(year=self.year, current_geography=self.current_geography, parent_geographies=self.parent_geographies), 'current_geom': ShorelineClip(year=self.year, geography=self.current_geography), 'parent_geoms': [ ShorelineClip(year=self.year, geography=parent_geography) for parent_geography in self.parent_geographies ] }
def requires(self): return { 'current_info': USLevelInfo(year=self.year, geography=self.current_geography), 'current_geom': ShorelineClip(year=self.year, geography=self.current_geography), 'parents_infos': [ USLevelInfo(year=self.year, geography=parent_geography) for parent_geography in self.parent_geographies ], 'parents_geoms': [ ShorelineClip(year=self.year, geography=parent_geography) for parent_geography in self.parent_geographies ] }
def requires(self): requirements = { 'metadata': ZillowValueColumns(), 'geoids': GeoidColumns(year=TIGER_YEAR), 'sumlevel': SumLevel(year=TIGER_YEAR, geography='zcta5'), 'shorelineclip': ShorelineClip(year=TIGER_YEAR, geography='zcta5') } for hometype, _ in HOMETYPES.items(): measure = measure_name(hometype) if measure: table_id = '{hometype}_{measure}'.format(hometype=hometype, measure=measure) requirements[table_id] = WideZillow(geography=self.geography, hometype=hometype, measure=measure) aggregations = measure_aggregation(hometype) for aggregation in aggregations: table_id = '{hometype}_{measure}'.format( hometype=hometype, measure=aggregation) requirements[table_id] = WideZillow( geography=self.geography, hometype=hometype, measure=aggregation) return requirements
def requires(self): return { 'shorelineclip': ShorelineClip(geography=self.geography, year='2015'), 'tiles': TilesTempTable(geography=self.geography, zoom_level=self.zoom_level, config_file=self.get_config_file()) }
def requires(self): requirements = { 'columns': WOFColumns(resolution=self.resolution), 'data': DownloadWOF(resolution=self.resolution), } if self.resolution == 'region': requirements['shoreline'] = ShorelineClip(year=2014, geography='state') requirements['tiger'] = DownloadTiger(year=2014) return requirements
def requires(self): return { 'shorelineclip': ShorelineClip(geography=self.geography, year='2015'), 'acs5yr': ACSMetaWrapper(geography=self.geography, year='2015', sample='5yr'), 'acs1yr': ACSMetaWrapper(geography=self.geography, year='2015', sample='1yr'), }
def requires(self): requirements = { 'data': SimpleQCEW(year=self.year, qtr=self.qtr), 'geoid_cols': GeoidColumns(year=TIGER_YEAR), 'naics': OrderedDict(), 'sumlevel': SumLevel(year=TIGER_YEAR, geography='county'), 'shorelineclip': ShorelineClip(year=TIGER_YEAR, geography='county'), } for naics_code in NAICS_CODES.keys(): if not is_public_administration(naics_code): # Only include the more general NAICS codes if is_supersector(naics_code) or is_sector( naics_code) or naics_code == '10': requirements['naics'][naics_code] = QCEWColumns( naics_code=naics_code) return requirements
def requires(self): return { 'columns': QuantileColumns(year=self.year, sample=self.sample, geography=self.geography), 'table': Extract(year=self.year, sample=self.sample, geography=self.geography), 'tiger': GeoidColumns(year=self.tiger_year()), 'sumlevel': SumLevel(geography=self.geography, year=self.tiger_year()), 'shorelineclip': ShorelineClip(geography=self.geography, year=self.tiger_year()) }
def requires(self): dependencies = { 'acs': Columns(year=self.year, sample=self.sample, geography=self.geography), 'tiger': GeoidColumns(year=self.tiger_year()), 'data': DownloadACS(year=self.year, sample=self.sample), 'sumlevel': SumLevel(geography=self.geography, year=self.tiger_year()), 'shorelineclip': ShorelineClip(geography=self.geography, year=self.tiger_year()) } if self.geography == BLOCK: dependencies['interpolation'] = TigerBlocksInterpolation( year=self.tiger_year()) dependencies['bg_extract'] = Extract(geography=BLOCK_GROUP, sample=self.sample, year=self.year) return dependencies
def requires(self): return ShorelineClip(year=self.year, geography=self.geography)