From e46d1bcd2b226312bebf6f0ce03a0307735ed5ea Mon Sep 17 00:00:00 2001 From: annamariadziubyna Date: Mon, 25 Sep 2023 10:34:23 +0200 Subject: [PATCH] exception in states_int --- src/clustered_hamiltonian.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clustered_hamiltonian.jl b/src/clustered_hamiltonian.jl index 6b761de..41dac2c 100644 --- a/src/clustered_hamiltonian.jl +++ b/src/clustered_hamiltonian.jl @@ -203,7 +203,7 @@ function truncate_clustered_hamiltonian(cl_h::LabelledGraph{S, T}, states::Dict) cl = get_prop(cl_h, v, :cluster) sp = get_prop(cl_h, v, :spectrum) if sp.states == Vector{Int64}[] - sp = Spectrum(sp.energies[states[v]], sp.states, []) + sp = Spectrum(sp.energies[states[v]], sp.states, [1,]) else sp = Spectrum(sp.energies[states[v]], sp.states[states[v]]) end