import json


def load_element_list(filename):
    """
    Load the list of elements in the ADAS database as
    defined for this script in the 'elemenets.json' file,
    located in the same directory as this script.

    elements.json:
      Define which datasets to use. The value indicates which year
      the dataset corresponds to. Please check the Open_ADAS documentation
      (https://open.adas.ac.uk/man/appxa-11.pdf) for the quality of
      the dataset before adding it to this list.
    """

    ELEMENTS = None
    with open(filename, 'r') as f:
        ELEMENTS = json.load(f)

    return ELEMENTS