complex_model/HailAUSKeysLookup.py
def _add_geog_name(self, uni_exposure: dict, geog_scheme: str, geog_name: str):
        """This parses custom geo-location: GNAF ID, Cresta and ICAZone

        :param uni_exposure:
        :param geog_scheme: valid RF supported geography scheme
        :param geog_name: valid RF supported region value
        :return: the uni exposure object where the respective geo-location has been set
        """
        # GNAF address
        if geog_scheme == "GNAF" and type(geog_name) == str and not geog_name == "":
            uni_exposure["address_id"] = geog_name
            uni_exposure['address_type'] = EnumAddressType.GNAF.value

        # ica zone
        if geog_scheme == "ICA" and is_integer(geog_name) and 0 < int(geog_name) < 50:
            uni_exposure["lrg_id"] = int(geog_name)
            uni_exposure['lrg_type'] = EnumResolution.IcaZone.value

        # cresta
        if geog_scheme == "CRO" and is_integer(geog_name) and 0 < int(geog_name) < 50:
            uni_exposure["zone_id"] = int(geog_name)
            uni_exposure['zone_type'] = EnumResolution.Cresta.value

        # postcode
        if geog_scheme == "PC4" and is_integer(geog_name) and 0 < int(geog_name):
            uni_exposure['med_id'] = int(geog_name)
            uni_exposure['med_type'] = EnumResolution.Postcode.value

        return uni_exposure
This parses custom geo-location: GNAF ID, Cresta and ICAZone

        :param uni_exposure:
        :param geog_scheme: valid RF supported geography scheme
        :param geog_name: valid RF supported region value
        :return: the uni exposure object where the respective geo-location has been set
        
This parses custom geo-location: GNAF ID, Cresta and ICAZone
This parses custom geo - location : GNAF ID Cresta and ICAZone
def _add_geog_name(self, uni_exposure: dict, geog_scheme: str, geog_name: str):
        if geog_scheme == "GNAF" and type(geog_name) == str and not geog_name == "":
            uni_exposure["address_id"] = geog_name
            uni_exposure['address_type'] = EnumAddressType.GNAF.value
        if geog_scheme == "ICA" and is_integer(geog_name) and 0 < int(geog_name) < 50:
            uni_exposure["lrg_id"] = int(geog_name)
            uni_exposure['lrg_type'] = EnumResolution.IcaZone.value
        if geog_scheme == "CRO" and is_integer(geog_name) and 0 < int(geog_name) < 50:
            uni_exposure["zone_id"] = int(geog_name)
            uni_exposure['zone_type'] = EnumResolution.Cresta.value
        if geog_scheme == "PC4" and is_integer(geog_name) and 0 < int(geog_name):
            uni_exposure['med_id'] = int(geog_name)
            uni_exposure['med_type'] = EnumResolution.Postcode.value
        return uni_exposure
def _add_geog_name ( self , uni_exposure : dict , geog_scheme : str , geog_name : str ) : if geog_scheme == "GNAF" and type ( geog_name ) == str and not geog_name == "" : uni_exposure [ "address_id" ] = geog_name uni_exposure [ 'address_type' ] = EnumAddressType . GNAF . value if geog_scheme == "ICA" and is_integer ( geog_name ) and 0 < int ( geog_name ) < 50 : uni_exposure [ "lrg_id" ] = int ( geog_name ) uni_exposure [ 'lrg_type' ] = EnumResolution . IcaZone . value if geog_scheme == "CRO" and is_integer ( geog_name ) and 0 < int ( geog_name ) < 50 : uni_exposure [ "zone_id" ] = int ( geog_name ) uni_exposure [ 'zone_type' ] = EnumResolution . Cresta . value if geog_scheme == "PC4" and is_integer ( geog_name ) and 0 < int ( geog_name ) : uni_exposure [ 'med_id' ] = int ( geog_name ) uni_exposure [ 'med_type' ] = EnumResolution . Postcode . value return uni_exposure
This parses custom geo-location: GNAF ID, Cresta and ICAZone
This parses custom geo - location : GNAF ID Cresta and ICAZone
"""This parses custom geo-location: GNAF ID, Cresta and ICAZone

        :param uni_exposure:
        :param geog_scheme: valid RF supported geography scheme
        :param geog_name: valid RF supported region value
        :return: the uni exposure object where the respective geo-location has been set
        """ # GNAF address # ica zone # cresta # postcode
the uni exposure object where the respective geo-location has been set
the uni exposure object where the respective geo - location has been set
self
uni_exposure
dict
None
geog_scheme
str
valid RF supported geography scheme
valid RF supported geography scheme
geog_name
str
valid RF supported region value
valid RF supported region value