def check_if_conversion(input_format, out_format):
    """
        Checks that the input and output formats differ

        Parameters
        ----------
        input_format : str
            File format of the input

        out_format : str
            File format of the output

        Raises
        ------
        Exception
            If the input and output formats do not differ
    """
    if input_format == out_format:
        raise Exception(
            'Input and Output formats are identical. Cannot convert')
