Closed xamberl closed 1 year ago
The issue for this arises from how the old RealBasis
and ReciprocalBasis
types worked. They would iterate through each basis vector. However, the new types are instance of LatticeBasis
, which is itself a subtype of StaticMatrix
, and iterators through a StaticMatrix
yield individual elements. For a 3D set of basis vectors, there are 9 elements, and it's getting those instead of the 3 constituent basis vectors.
Below is the error message.
It seems like the loop here should be fixed. https://github.com/brainandforce/Electrum.jl/blob/aba8aa48044838675e8474490bf88380a2821fd0/src/lattices.jl#L185C13-L205