Band structure plot

Total energy, geometry optimization, DFT+U, spin....

Moderator: bguster

Locked
mina
Posts: 110
Joined: Mon Sep 27, 2010 8:44 am

Band structure plot

Post by mina » Tue Dec 11, 2012 12:11 pm

Hello all user,
i wana to plot band structure i have python in my pc but when i use this command to plot band structure: > python AbinitBandStructure.py file.out i get this error:bash: AbinitBandStructureMaker.py: command not found.
Would you please tell me why there is problem?
Best regards.
Mina.

ilukacevic
Posts: 271
Joined: Sat Jan 16, 2010 12:05 pm
Location: Dept. of Physics, University J. J. Strossmayer, Osijek, Croatia
Contact:

Re: Band structure plot

Post by ilukacevic » Wed Dec 12, 2012 8:51 am

Dear mina,

I think this means that AbinitBandStructure.py is not in your path (you can google out how to put it there). Or you can give an explicit path where it is when you issue the command line.

Igor

mina
Posts: 110
Joined: Mon Sep 27, 2010 8:44 am

Re: Band structure plot

Post by mina » Wed Dec 12, 2012 10:21 am

Dear ilukacevic,
Thank you for your help,i do that.i have linux debian on my pc and python but i dont have abinit in my pc. i run my job by abinit in server and then copy my job that has been run to my pc.now i copy AbinitBandStructureMaker.py in my pc too but i have that problem again.
Would you tell me what dose mean of path?
Best regards.
Mina.

ilukacevic
Posts: 271
Joined: Sat Jan 16, 2010 12:05 pm
Location: Dept. of Physics, University J. J. Strossmayer, Osijek, Croatia
Contact:

Re: Band structure plot

Post by ilukacevic » Thu Dec 13, 2012 9:41 am


mina
Posts: 110
Joined: Mon Sep 27, 2010 8:44 am

Re: Band structure plot

Post by mina » Sun Dec 16, 2012 2:23 pm

Dear ilukacevic,
Thank you for your help, i used your suggestions but now when i run: python AbinitBandStructureMaker.py myfile.out i have another error:
File "AbinitBandStructureMaker.py", line 16, in <module>
from Numeric import *
ImportError: No module named Numeric
i have python and python numpy on my pc too.
would you please guide me to solve this problem?
Best regards.
Mina.

suvas
Posts: 15
Joined: Sun Nov 11, 2012 4:00 am

Re: Band structure plot

Post by suvas » Mon Dec 17, 2012 1:27 am

Dear Mina,

I think you have Numeric Python code in Abinitbandstructure.py. You need to change Numeric to numpy simply. Before doing this you need to install numpy in your computer. That should work.

Suvas

mina
Posts: 110
Joined: Mon Sep 27, 2010 8:44 am

Re: Band structure plot

Post by mina » Tue Dec 18, 2012 6:38 am

Dear Suvas,
Thanks a lot for your help,i could plot band structure.
Best regards.
Mina.

Locked