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

brillouin zone does not show a hexagon #1

Closed
obgeneralao opened this issue Nov 1, 2016 · 3 comments
Closed

brillouin zone does not show a hexagon #1

obgeneralao opened this issue Nov 1, 2016 · 3 comments

Comments

@obgeneralao
Copy link

obgeneralao commented Nov 1, 2016

Hi,

I modified the primitive lattice vector as shown on the figure(in pdf)
crystal_strucure.pdf

However I have trouble with the brillouin zone figure, the hexagon was missing
brillouin_zone.pdf

My code is:
the code.txt

Thanks

P.S. I just bumped on your project 2 days ago and I am not good at Python programming but just a little above beginner and below average.

@dean0x7d
Copy link
Owner

dean0x7d commented Nov 2, 2016

Thank you for reporting the issue. Indeed, it seems to be a bug in the Brillouin zone calculation, specifically in cases where the angle between lattice vectors is obtuse. I have just committed some changes in a3aee7f which should make this calculation more robust and fix the problem.

That fix is committed in the master branch, so you would need to compile the latest version from source code. This can be a bit more complicated than the normal install, but instruction on how to do that are here: Compiling from source. Note that the documentation has two versions: 1. stable (currently v0.8.0) and 2. latest (following the master branch).

Alternatively, you can wait for the release of the next version (v0.8.1) which will use the regular install procedure. I'm planning to add a few more bug fixes and release that soon.

@obgeneralao
Copy link
Author

Terrific! it works.

Though I did not compile it from source because I am getting a lot of errors, I am using Anaconda though. What I did was copy the lattice.py to Anaconda.

I appreciate it.

@dean0x7d
Copy link
Owner

dean0x7d commented Nov 2, 2016

Great, I'm glad to hear that it works!

@dean0x7d dean0x7d closed this as completed Nov 2, 2016
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