materials_compendium.parse.Element.from_dict

static Element.from_dict(obj)[source]

Create an Element object from a dictionary representation.

Parameters:

obj (dict) – A dictionary containing attributes of the Element.

Returns:

A new Element object with attributes initialized using the values from the dictionary.

Return type:

Element