From 776e0a31d11bbc7a9376253da2d6f2dd2c5723fb Mon Sep 17 00:00:00 2001 From: "Oleg E. Peil" Date: Sat, 31 Dec 2016 14:55:25 +0100 Subject: [PATCH] Fixed a type in POSCAR read routine --- python/converters/plovasp/vaspio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/converters/plovasp/vaspio.py b/python/converters/plovasp/vaspio.py index 6fb023f5..ad268de8 100644 --- a/python/converters/plovasp/vaspio.py +++ b/python/converters/plovasp/vaspio.py @@ -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()