@classmethod
def _check_mandatory_params(cls, params, mandatory):
    """
        Ensure that we have all mandatory parameters in the given parameters

        :param params: file parameters
        :param mandatory: required parameters
        :raises ValueError: if some of the required parameters are missing
        """
    for md in mandatory:
        if md not in params:
            raise ValueError('Mandatory parameter is missing: {0}'.format(md))
