3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-04 19:43:38 +01:00

Fixed a type in POSCAR read routine

This commit is contained in:
Oleg E. Peil 2016-12-31 14:55:25 +01:00
parent f7fddb1f5c
commit 776e0a31d1

View File

@ -383,7 +383,7 @@ class Poscar:
try:
# Old v4.6 format: no element names
self.nions = map(int, sline.split())
self.el_names = ['El%i'%(i) for i in xrange(len(nions))]
self.el_names = ['El%i'%(i) for i in xrange(len(self.nions))]
except ValueError:
# New v5.x format: read element names first
self.el_names = sline.split()