Skip to content

Commit

Permalink
Update pythtb.jl
Browse files Browse the repository at this point in the history
Fix prefactor for velocities
  • Loading branch information
lxvm authored Oct 28, 2024
1 parent 4ac9031 commit 6177ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pythtb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit 6177ea9

Please sign in to comment.