def is_mtz_file(filename):
    """Check if a file is MTZ format - at least according to the
    magic number."""

    with open(filename, "rb") as fh:
        magic = fh.read(4)

    return magic == b"MTZ "