def METHOD_NAME(self, m_id, doc):
    """
    Update a material document based on a new task
    Args:
        m_id (int): material_id for material document to update
        doc (dict): a JSON-like Boltztrap document
    """
    bta = BoltztrapAnalyzer.from_dict(doc)
    d = {}
    d["zt"] = bta.get_extreme("zt")
    d["pf"] = bta.get_extreme("power factor")
    d["seebeck"] = bta.get_extreme("seebeck")
    d["conductivity"] = bta.get_extreme("conductivity")
    d["kappa_max"] = bta.get_extreme("kappa")
    d["kappa_min"] = bta.get_extreme("kappa", maximize=False)
    self._materials.update_one({"material_id": m_id}, {"$set": {"transport": d}})
    self._materials.update_one(
        {"material_id": m_id},
        {"$push": {"_boltztrapbuilder.all_object_ids": doc["_id"]}},
    )