triqs_dft_tools.converters.elk.ElkConverter.read_elk_file2

ElkConverter.read_elk_file2(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.