After the Voronoi charges, transiesta adds a line like:
ts-Vha: 0.27918E-01 eV
Which is parsable by the read_charge method and therefore adds one extra "atom" to the charges read. That's why inside the try/except statement that parses lines I added an int(atom_idx), which I see now that you removed.
After the Voronoi charges, transiesta adds a line like:
Which is parsable by the
read_charge
method and therefore adds one extra "atom" to the charges read. That's why inside the try/except statement that parses lines I added anint(atom_idx)
, which I see now that you removed.I attached the output file.
siesta.txt