triqs_dft_tools.converters.hk.HkConverter.read_fortran_file

HkConverter.read_fortran_file(filename, to_replace)

Returns a generator that yields all numbers in the Fortran file as float, with possible replacements.

Parameters:
filenamestring

Name of Fortran-produced file.

to_replacedict of str:str

Dictionary defining old_char:new_char.

Returns:
string

The next number in file.