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

Python MPB interface seems to round down for lattice vector size #48

Closed
DerekK44 opened this issue Apr 22, 2018 · 0 comments
Closed

Python MPB interface seems to round down for lattice vector size #48

DerekK44 opened this issue Apr 22, 2018 · 0 comments

Comments

@DerekK44
Copy link

When I create a lattice object using the Python MPB interface and have a lattice vector component less than 1, it seems to round it down to zero. For example:
geometry_lattice = mp.Lattice(size=mp.Vector3(0.25, 2, 2))
ms = mpb.ModeSolver(..., geometry_lattice=geometry_lattice, ...)

In the output file it then says:
Lattice vectors: (0, 0, 0) (0, 2, 0) (0, 0, 2)

which creates all sorts of issues during execution of my program. It works fine using the Scheme interface, so I am guessing it's a bug / rounding error in the Python implementation?

Thanks!

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

1 participant