@classmethod
def from_dict(cls, d):
    """
           Read information from dictionary

           Parameters
           ----------
           d: dict
               Dictionary including parameters for replica exchange Monte Carlo method

           Returns
           -------
           params: DFTParams object
               self
        """
    if 'replica' in d:
        d = d['replica']
    params = cls()
    params.nreplicas = d['nreplicas']
    params.nprocs_per_replica = d['nprocs_per_replica']
    params.kTstart = d['kTstart']
    params.kTend = d['kTend']
    params.nsteps = d['nsteps']
    params.RXtrial_frequency = d.get('RXtrial_frequency', 1)
    params.sample_frequency = d.get('sample_frequency', 1)
    params.print_frequency = d.get('print_frequency', 1)
    params.reload = d.get('reload', False)
    params.seed = d.get('seed', 0)
    return params
