Skip to content

Commit 3a91d7a

Browse files
committed
Fix nelm reading.
1 parent 823fa60 commit 3a91d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpdata/vasp/outcar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def system_info (lines, type_idx_zero = False) :
1515
atom_names.append(_ii)
1616
elif 'NELM' in ii and nelm == None:
1717
# will read only first nelm
18-
nelm = int(ii.split()[2][:-1])
18+
nelm = int(ii.split()[2].rstrip(";"))
1919
elif 'ions per type' in ii :
2020
atom_numbs_ = [int(s) for s in ii.split()[4:]]
2121
if atom_numbs is None :

0 commit comments

Comments
 (0)