get_mineral_name

emmet.core.featurization.robocrys.describe.describer.get_mineral_name(mineral_dict)

Get the mineral name from a mineral dictionary.

Return type:

str | None

Parameters:

mineral_dict (dict[str, Any])

Args:

mineral_dict: The mineral dictionary from the condensed description.

Returns:

If mineral_dict["type"] is set, the mineral name will be returned as a string, else None will be returned.