@classmethod
def from_dict(cls, data):
    """
		Takes the dictionary--data--and
		returns a PawpyData instance.
		"""
    if 'metadata' in data:
        metadata = data['metadata']
    else:
        metadata = None
    return cls(data['structure'], data['data'], energy_levels=data[
        'energy_levels'], dos=[data['energies'], data['densities'], data[
        'efermi']], vbm=data['vbm'], cbm=data['cbm'], metadata=metadata)
