Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lobster cohp/coop/dos plotting import error #158

Closed
bradraj opened this issue Jul 17, 2018 · 4 comments
Closed

Lobster cohp/coop/dos plotting import error #158

bradraj opened this issue Jul 17, 2018 · 4 comments

Comments

@bradraj
Copy link

bradraj commented Jul 17, 2018

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
Copy link
Member

gmatteo commented Jul 17, 2018

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
Copy link
Author

bradraj commented Jul 18, 2018

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
Copy link
Member

gmatteo commented Jul 18, 2018

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
Copy link
Author

bradraj commented Jul 19, 2018

Thanks a lot for quick reply !

@bradraj bradraj closed this as completed Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants