triqs_dft_tools.converters.converter_tools.ConverterTools.read_fortran_file
- ConverterTools.read_fortran_file(filename, to_replace)[source]
Returns a generator that yields all numbers in the Fortran file as float, with possible replacements.
- Parameters:
filename : string
Name of Fortran-produced file.
to_replace : dict of str:str
Dictionary defining old_char:new_char.
- Returns:
string :
The next number in file.