You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: