def requires(self):
     return {
         'sections': SectionTags(),
         'subsections': SubsectionTags(),
         'unittags': UnitTags(),
         'sourcetag': SourceTags()
     }
Esempio n. 2
0
 def requires(self):
     return {
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
         'units': UnitTags(),
         'censustags': SourceTags()
     }
Esempio n. 3
0
 def requires(self):
     return {
         'sections': SectionTags(),
         'subsections': SubsectionTags(),
         'source_license': SourceLicenseTags(),
         'boundary': BoundaryTags()
     }
Esempio n. 4
0
 def requires(self):
     return {
         'tags': ZillowTags(),
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
         'units': UnitTags(),
     }
Esempio n. 5
0
 def requires(self):
     return {
         'sections': SectionTags(),
         'subsections': SubsectionTags(),
         'source': TigerSourceTags(),
         'license': LicenseTags(),
     }
Esempio n. 6
0
 def requires(self):
     return {
         'raw': GeomColumns(year=self.year),
         'clipped': ClippedGeomColumns(year=self.year),
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
     }
Esempio n. 7
0
 def requires(self):
     return {
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
         'source': MiddleLayerSuperOutputAreasSourceTags(),
         'license': LicenseTags(),
         'boundary': BoundaryTags(),
     }
Esempio n. 8
0
 def requires(self):
     return {
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
         'license': LicenseTags(),
         'boundary': BoundaryTags(),
         'uk_census_sources': SourceTags()
     }
Esempio n. 9
0
 def requires(self):
     return {
         'geom_columns': GeomColumns(),
         'sections': SectionTags(),
         'subsections': SubsectionTags(),
         'source': SourceTags(),
         'license': LicenseTags(),
     }
Esempio n. 10
0
 def requires(self):
     return {
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
         'units': UnitTags(),
         'source': SourceTags(),
         'license': LicenseTags(),
     }
Esempio n. 11
0
 def requires(self):
     return {
         'geom_columns': GeomColumns(year=self.year),
         'sections': SectionTags(),
         'subsections': SubsectionTags(),
         'source': TigerSourceTags(),
         'license': LicenseTags(),
         'boundary': BoundaryTags(),
     }
Esempio n. 12
0
 def requires(self):
     return {
         'units': UnitTags(),
         'subsection': SubsectionTags(),
         'section': SectionTags(),
         'source': SourceTags(),
         'license': LicenseTags(),
         'metabase': MetabaseTable(),
     }
Esempio n. 13
0
    def requires(self):
        requirements = {
            'sections': SectionTags(),
            'subsections': SubsectionTags(),
            'units': UnitTags(),
            'sources': SourceTags()
        }
        parent_code = get_parent_code(self.naics_code)
        if parent_code:
            requirements['parent'] = QCEWColumns(naics_code=parent_code)

        return requirements
Esempio n. 14
0
 def requires(self):
     if self.geography == BLOCK:
         tiger = SimplifyGeoByState(geography=self.geography, year=self.year)
     else:
         tiger = SimplifiedDownloadTiger(geography=self.geography, year=self.year)
     return {
         'data': tiger,
         'geoids': GeoidColumns(year=self.year),
         'sections': SectionTags(),
         'subsections': SubsectionTags(),
         'geonames': GeonameColumns(year=self.year),
         'shoreline': ShorelineClip(year=self.year, geography=self.geography),
         'sumlevel': SumLevel(year=self.year, geography=self.geography),
     }
Esempio n. 15
0
    def requires(self):
        requirements = {
            'sections': SectionTags(),
            'subsections': SubsectionTags(),
            'unittags': UnitTags(),
            'sourcetag': SourceTags()
        }
        if self.table_theme != 'population':
            requirements['population_vars'] = FrenchColumns(
                table_theme='population')

        if self.table_theme in ('employment', 'education'):
            requirements['households_vars'] = FrenchColumns(
                table_theme='household')
        return requirements
Esempio n. 16
0
    def requires(self):
        requirements = {
            'sections': SectionTags(),
            'subsections': SubsectionTags(),
            'units': UnitTags(),
            'source': SourceTags(),
            'license': LicenseTags()
        }
        reqs = self._fetch_requirements()
        col_reqs = reqs.get('all', [])
        col_reqs.extend(reqs.get(self.tablename, []))
        for col_req in col_reqs:
            if col_req != self.tablename:
                requirements[col_req] = Columns(tablename=col_req,
                                                resolution=self.resolution,
                                                year=self.year,
                                                profile=self.profile)

        return requirements
Esempio n. 17
0
    def requires(self):
        requirements = {
            'sections': SectionTags(),
            'subsections': SubsectionTags(),
            'units': UnitTags(),
            'source': SourceTags(),
            'license': LicenseTags()
        }
        if self.tablename == 'Domicilio02':
            requirements['Domicilio01'] = Columns(tablename='Domicilio01')

        if self.tablename == 'Entorno02':
            requirements['Entorno01'] = Columns(tablename='Entorno01')

        if self.tablename in ('Entorno04', 'Entorno05'):
            requirements['Entorno03'] = Columns(tablename='Entorno03')

        if self.tablename in ('Pessoa11', 'Pessoa12'):
            requirements['Pessoa13'] = Columns(tablename='Pessoa13')

        if self.tablename in ('Pessoa02', 'Pessoa04'):
            requirements['Pessoa01'] = Columns(tablename='Pessoa01')

        if self.tablename in ('Pessoa08'):
            requirements['Pessoa07'] = Columns(tablename='Pessoa07')

        if self.tablename in ('Pessoa05'):
            requirements['Pessoa03'] = Columns(tablename='Pessoa03')

        if self.tablename in ('Responsavel01'):
            requirements['Responsavel02'] = Columns(tablename='Responsavel02')

        if self.tablename in ('Basico'):
            requirements['Pessoa13'] = Columns(tablename='Pessoa13')
            requirements['ResponsavelRenda'] = Columns(
                tablename='ResponsavelRenda')

        return requirements
Esempio n. 18
0
 def requires(self):
     return {
         'sections': SectionTags(),
         'subsections': SubsectionTags(),
     }
Esempio n. 19
0
 def requires(self):
     return {
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
         'boundary_type': BoundaryTags()
     }
Esempio n. 20
0
 def requires(self):
     return {
         'sections': SectionTags(),
         'subsections': SubsectionTags(),
         'geotags': SourceTags()
     }
Esempio n. 21
0
 def requires(self):
     return {
         'geom_cols': GeometryColumns(),
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
     }
Esempio n. 22
0
 def requires(self):
     return SectionTags()