parq_blockmodel.utils.pyvista.categorical_utils.load_mapping_dict

parq_blockmodel.utils.pyvista.categorical_utils.load_mapping_dict(mesh, name)[source]

Load a mapping dictionary from a PyVista mesh’s field_data.

Parameters: - mesh: pyvista.DataSet - name: str, the key under which the mapping was stored

Returns: - dict, the decoded mapping

Return type:

dict