def flatten_material(material):
    """
    Flattens a given material.

    Args:
        material (dict): material config.

    Returns:
        list
    """
    lattice = material["lattice"]
    return [
        material["_id"],
        material["name"],
        ", ".join(material["tags"]),
        len(material["basis"]["coordinates"]),
        lattice["a"],
        lattice["b"],
        lattice["c"],
        lattice["alpha"],
        lattice["beta"],
        lattice["gamma"]
    ]