[ase-users] Problem Using Atoms module

Abhirup Patra abhirup.patra at hotmail.com
Thu Jan 21 18:22:03 CET 2016


Hi All,
I am trying to get the inter layer distance between the layers of the surface slab from using the CONTCATR of the VASP . 
But when I am trying to read the z-coordinates of the atoms using 'positions' attributeI am getting the error as -
AttributeError: 'file' object has no attribute 'positions'
Here is what i have imported in my code-
import ase.iofrom ase import Atomsfrom ase.io import readfrom ase.io import writefrom ase import *import numpy as np
Can anyone please give me any idea where I am going wrong ?
Thanks,


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20160121/9f688128/attachment.html>


More information about the ase-users mailing list