Skip to content

Commit

Permalink
change cl_h spectrum
Browse files Browse the repository at this point in the history
  • Loading branch information
annamariadziubyna committed Nov 22, 2023
1 parent 653ccd9 commit 5987b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clustered_hamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ function clustered_hamiltonian(fname::String, Nx::Integer = 240, Ny::Integer = 3
if length(index) == 2
y, x = index
Eng = functions[value]'
sp = Spectrum(collect(Eng), Vector{Vector{Int}}[], zeros(1))
sp = Spectrum(collect(Eng), Vector{Vector{Int}}[], zeros(Int, N[y+1, x+1]))
set_props!(cl_h, (x+1, y+1), Dict(:spectrum => sp))
elseif length(index) == 4
y1, x1, y2, x2 = index
Expand Down

0 comments on commit 5987b75

Please sign in to comment.