mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 04:13:47 +01:00
Fixed a type in POSCAR read routine
This commit is contained in:
parent
f7fddb1f5c
commit
776e0a31d1
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user