abinit / abipy

Open-source library for analyzing the results produced by ABINIT
http://abinit.github.io/abipy
Other
117 stars 96 forks source link

Lobster cohp/coop/dos plotting import error #158

Closed bradraj closed 6 years ago

bradraj commented 6 years ago

I installed abipy 0.6.0 devel version. I tried the lobster notebook tutorial for plotting cohp.

for this given command line in the jupyter notebook,

from abipy.abilab import LobsterAnalyzer

it is giving the below error:

ImportError: cannot import name 'LobsterAnalyzer'

gmatteo commented 6 years ago

This usually happens when jupyter is not installed in the same environment as the one used for AbiPy.

Could you give the output of

which jupyter
which python

On my Mac, for example, I use conda and I have:

which jupyter     # /Users/gmatteo/anaconda3/envs/env3.6/bin/jupyter
which python # /Users/gmatteo/anaconda3/envs/env3.6/bin/python

python setup.py installinstalls AbiPy in /Users/gmatteo/anaconda3/envs/env3.6/lib/python3.6/site-packages/` and jupyter will have access to the last version installed by setup.py

bradraj commented 6 years ago

It is working when the environment is same. Thanks a lot.

But the index of the different atom orbitals between Ga and As is blocking the p-COOP. coop

gmatteo commented 6 years ago

Use the fontsize keyword argument to decrease the text size fontsize e.g.

fontsize=8

Note that this part of AbiPy is still under development and there's lot of room for improvement

bradraj commented 6 years ago

Thanks a lot for quick reply !