triqs.dos.dos.dos_from_file(Filename, name='', single_orbital=None)[source]

Read the DOS from a file

  • Filename – a string : name of the file

  • name – name of the DOS

  • single_orbital – can be None or an integer.

Return type:

  • if single_orbital== None, returns a tuple of DOS (even if there is one dos !).

  • If single_orbital==i, return only ONE DOS corresponding to ith orbital (starting at 1).

Format of the file :
  • N_orbitals +1 columns,

  • the first column is the value of epsilon

  • the N_orbitals other columns are the values of the dos for various orbitals