Skip to content

MAINT: Calculator abinit.py: fix for abinit 8.2 reading number of SCF cycles.

username-removed-646258 requested to merge farhi/ase:patch-2 into master

The message e.g.

At SCF step 5 nres2 = 6.83E-10 < tolvrs= 3.68E-08 =>converged.

does not contain any comma, and can not therefore be split. The 3rd token is the number. The 'try except' could even be avoided into a single statement:

niter = int(line.split()[3].strip())

which is probably easier to understand, and does not use try.

Merge request reports