From 6177ea9428cdccafc794ebeef22cda4b8ef8654f Mon Sep 17 00:00:00 2001 From: Lorenzo Van Munoz <66997677+lxvm@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:36:57 -0400 Subject: [PATCH] Update pythtb.jl Fix prefactor for velocities --- src/pythtb.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pythtb.jl b/src/pythtb.jl index 591e481..c0afbe1 100644 --- a/src/pythtb.jl +++ b/src/pythtb.jl @@ -29,7 +29,7 @@ function pythtb2fourier(m) _C[i] = view(C, :, :, i) end _C[-offset] += Diagonal(m._site_energies) - return FourierSeries(_C; period=1.0, offset=Tuple(offset)) + return FourierSeries(_C; period=freq2rad(1.0), offset=Tuple(offset)) end function pythtb2hamiltonian(m; kws...)