Commit 4b5ef7ac authored by Remi Perenon's avatar Remi Perenon

Fixing ciruclar lattice bug

parent e6522414
......@@ -46,7 +46,9 @@ class CircularLatticeQVectors(LatticeQVectors):
qMax = self._configuration["shells"]["last"] + 0.5*self._configuration["width"]["value"]
uvMax = numpy.ceil([qMax/Vector(v).length() for v in qVects.T]) + 1
uvMax = numpy.ceil([qMax/Vector(v).length() for v in qVects.T]) + 1
# Enforce integers in uvMax
uvMax = uvMax.astype(numpy.int64)
idxs = numpy.mgrid[-uvMax[0]:uvMax[0]+1,-uvMax[1]:uvMax[1]+1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment