Skip to content

Commit

Permalink
Change upper bound conditional to strict <
Browse files Browse the repository at this point in the history
  • Loading branch information
ddahlbom committed Aug 23, 2024
1 parent 884fbfc commit 9daa672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SampledCorrelations/DataRetrieval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ end

function intensities_static(sc::SampledCorrelations, qpts; bounds = (-Inf, Inf), formfactors=nothing, kT)
ωs = available_energies(sc; negative_energies=true)
ωidcs = findall(x -> bounds[1] <= x <= bounds[2], ωs)
ωidcs = findall(x -> bounds[1] <= x < bounds[2], ωs)
if iszero(length(ωidcs))
error("No information available within specified energy `bounds`. Try a larger interval.")
end
Expand Down

0 comments on commit 9daa672

Please sign in to comment.