def check_filename(filename):
    """
    Checks if filename adheres to the correct format.
    """
    if '.txt' in str(filename[0]) or '.vtk' in str(filename[0]):
        return True
    else:
        return False