materials_compendium.parse.Mol.from_dict

static Mol.from_dict(obj)[source]

Create a Mol object from a dictionary representation.

Parameters:

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

Returns:

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

Return type:

Mol