def __init__(self):
        """
        Constructor for postprocessor class,
        It takes care of defining self.impact_total
        """
        AbstractPostprocessor.__init__(self)
        self.impact_total = None
        self.impact_attrs = None
        self.target_field = None
        self.no_features = None
        self.type_fields = None
        self.valid_type_fields = None
        self.fields_values = OrderedDict([
            ('Medical', ['Clinic/Doctor', 'Hospital']),
            ('Schools', ['School', 'University/College', ]),
            ('Places of worship', ['Place of Worship - Unitarian',
                                   'Place of Worship - Islam',
                                   'Place of Worship - Buddhist',
                                   'Place of Worship']),
            ('Residential', ['Residential']),
            ('Government', ['Government']),
            ('Public Building', ['Public Building']),
            ('Fire Station', ['Fire Station']),
            ('Police Station', ['Police Station']),
            ('Supermarket', ['Supermarket']),
            ('Commercial', ['Commercial']),
            ('Industrial', ['Industrial']),
            ('Utility', ['Utility']),
            ('Sports Facility', ['Sports Facility']),
            ('Other', [])])

        self.known_types = []
        self._update_known_types()
    def __init__(self):
        """
        Constructor for postprocessor class,
        It takes care of defining self.impact_total
        """
        AbstractPostprocessor.__init__(self)

        # Integer with total number of features/meters affected.
        self.impact_total = None

        # List of features
        self.impact_attrs = None

        # Name the field in the impact layer for the result.
        self.target_field = None

        # The name of field in the exposure layer.
        self.valid_type_fields = None

        # The value mapping for the exposure layer.
        self.value_mapping = None

        # Bool to know if there are some features. We will be computed later.
        self.no_features = None

        # Find which attribute field has to be used
        self.type_fields = None

        # Dictionary key - display name for the mapping.
        self._labels = {}

        # The categories order.
        self._order = None
 def __init__(self):
     """
     Constructor for postprocessor class,
     It takes care of defining self.impact_total
     """
     AbstractPostprocessor.__init__(self)
     self.impact_total = None
     self.impact_attrs = None
     self.target_field = None
     self.no_features = None
     self.fields_values = {
         'Medical': ['Clinic/Doctor', 'Hospital'],
         'Schools': ['School', 'University/College', ],
         'Places of worship': ['Place of Worship - Unitarian',
                               'Place of Worship - Islam',
                               'Place of Worship - Buddhist',
                               'Place of Worship'],
         'Residential': ['Residential'],
         'Government': ['Government'],
         'Public Building': ['Public Building'],
         'Fire Station': ['Fire Station'],
         'Police Station': ['Police Station'],
         'Supermarket': ['Supermarket'],
         'Commercial': ['Commercial'],
         'Industrial': ['Industrial'],
         'Utility': ['Utility'],
         'Sports Facility': ['Sports Facility'], }
     self.type_fields = None
     self.valid_type_fields = ['type']
예제 #4
0
 def __init__(self):
     """
     Constructor for AgePostprocessor postprocessor class,
     It takes care of defining self.impact_total
     """
     AbstractPostprocessor.__init__(self)
     self.impact_total = None
 def __init__(self):
     """
     Constructor for MinimumNeedsPostprocessor postprocessor class,
     It takes care of defining self.impact_total
     """
     AbstractPostprocessor.__init__(self)
     self.impact_total = None
     self.minimum_needs = None
 def __init__(self):
     """
     Constructor for postprocessor class,
     It takes care of defining self.impact_classes
     """
     AbstractPostprocessor.__init__(self)
     self.impact_classes = None
     self.impact_attrs = None
     self.target_field = None
예제 #7
0
 def __init__(self):
     """
     Constructor for MinimumNeedsPostprocessor postprocessor class,
     It takes care of defining self.impact_total
     """
     AbstractPostprocessor.__init__(self)
     self.impact_total = None
     self.minimum_needs = None
     self._description = tr('Aggregates minimum needs.')
 def __init__(self):
     """
     Constructor for postprocessor class,
     It takes care of defining self.impact_classes
     """
     AbstractPostprocessor.__init__(self)
     self.impact_classes = None
     self.impact_attrs = None
     self.target_field = None
예제 #9
0
    def __init__(self):
        """
        Constructor for AgePostprocessor postprocessor class.

        It takes care of defining self.impact_total
        """
        AbstractPostprocessor.__init__(self)
        self.youth_ratio = None
        self.adult_ratio = None
        self.elderly_ratio = None
        self.impact_total = None
예제 #10
0
    def __init__(self):
        """
        Constructor for AgePostprocessor postprocessor class.

        It takes care of defining self.impact_total
        """
        AbstractPostprocessor.__init__(self)
        self.youth_ratio = None
        self.adult_ratio = None
        self.elderly_ratio = None
        self.impact_total = None
 def __init__(self):
     """
     Constructor for postprocessor class,
     It takes care of defining self.impact_total
     """
     AbstractPostprocessor.__init__(self)
     self.impact_total = None
     self.impact_attrs = None
     self.target_field = None
     self.type_field = None
     self.valid_type_fields = ['amenity', 'type']
     self.types = {'Hospitals': ['medical', 'clinic', 'hospital'],
                   'Places of worship': ['place_of_worship'],
                   'Schools': ['school']}
예제 #12
0
 def __init__(self):
     """
     Constructor for postprocessor class,
     It takes care of defining self.impact_total
     """
     AbstractPostprocessor.__init__(self)
     self.impact_total = None
     self.impact_attrs = None
     self.target_field = None
     self.type_fields = None
     self.valid_type_fields = ['AMENITY', 'TYPE']
     self.fields_values = {'Hospitals': ['medical', 'clinic', 'hospital'],
                   'Places of worship': ['place_of_worship'],
                   'Schools': ['school']}
    def __init__(self):
        """
        Constructor for postprocessor class,
        It takes care of defining self.impact_total
        """
        AbstractPostprocessor.__init__(self)
        self.impact_total = None
        self.impact_attrs = None
        self.target_field = None
        self.no_features = None
        self.type_fields = None
        self.valid_type_fields = None
        self.fields_values = OrderedDict(
            [
                ("Medical", ["Clinic/Doctor", "Hospital"]),
                ("Schools", ["School", "University/College"]),
                (
                    "Places of worship",
                    [
                        "Place of Worship - Unitarian",
                        "Place of Worship - Islam",
                        "Place of Worship - Buddhist",
                        "Place of Worship",
                    ],
                ),
                ("Residential", ["Residential"]),
                ("Government", ["Government"]),
                ("Public Building", ["Public Building"]),
                ("Fire Station", ["Fire Station"]),
                ("Police Station", ["Police Station"]),
                ("Supermarket", ["Supermarket"]),
                ("Commercial", ["Commercial"]),
                ("Industrial", ["Industrial"]),
                ("Utility", ["Utility"]),
                ("Sports Facility", ["Sports Facility"]),
                ("Other", []),
            ]
        )

        self.known_types = []
        self._update_known_types()
예제 #14
0
 def __init__(self):
     AbstractPostprocessor.__init__(self)
     self.impact_total = None
     self.female_ratio = None
예제 #15
0
 def __init__(self):
     AbstractPostprocessor.__init__(self)
예제 #16
0
 def __init__(self):
     AbstractPostprocessor.__init__(self)
     self.impact_total = None
     self.female_ratio = None
예제 #17
0
 def __init__(self):
     AbstractPostprocessor.__init__(self)