def _check_transform_file_ending(fn, f_format=".sdf"):
    """Checks if there is sdf(or optional other) file ending. If not it
    adds a file ending.
    """
    if fn.endswith(f_format):
        return fn
    else:
        return fn + f_format