Bug in read_espresso_out()
My Code:
from ase.io import espresso
file = 'si.scf.david.out'
data = espresso.read_espresso_out(file)
atoms = list(data)[0]
causes
File "/venv/lib/python3.8/site-packages/ase/io/espresso.py", line 170, in read_espresso_out
for image_index in image_indexes:
TypeError: 'int' object is not iterable
Line 170 in read_espresso_out:
# slice from the subset
image_indexes = results_config_indexes[index]
else:
image_indexes = all_config_indexes[index]
# Extract initialisation information each time PWSCF starts
# to add to subsequent configurations. Use None so slices know
# when to fill in the blanks.
pwscf_start_info = dict((idx, None) for idx in indexes[_PW_START])
for image_index in image_indexes: #<-- Line 170 BUG can't iterate over int !!!
...