from etl.epc.settings import DATA_ANOMALY_MATCHES as data_anon_matches


class Definitions:
    """
    This class contains some base attributes which are used across multiple other classes
    """

    # Anomalies described here: https://epc.opendatacommunities.org/docs/guidance#glossary
    DATA_ANOMALY_MATCHES = data_anon_matches

    DATA_ANOMALY_SUBSTRINGS = {
        # Where values in a ‘pick’ list that have been superseded by another value. For example, where a value for
        # ‘pitched roof’ has been replaced by three sub-categories of pitched roof. The original value is retained
        # but ‘for backward compatibility only’ it is appended to ensure that the energy certificate retrieval
        # process can be successfully completed. Replacement data items cannot be applied retrospectively to energy
        # certificates lodged on the register before the date of the change.
        "for backward compatibility only"
    }
