Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
brillouin zone does not show a hexagon #1
I modified the primitive lattice vector as shown on the figure(in pdf)
However I have trouble with the brillouin zone figure, the hexagon was missing
My code is:
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.
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.