Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros committed Jun 7, 2024
1 parent bbbf5ed commit d9770f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_correlation_sampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
Δω = sc.Δω
add_sample!(sc, sys)
qgrid = available_wave_vectors(sc)
Δq³ = 1/prod(sys.latsize) # Fraction of a BZ for one cell
Δq³ = 1/prod(sys.latsize) # Fraction of a BZ
formula = intensity_formula(sc,:trace)
Sqw = intensities_interpolated(sc, qgrid, formula; negative_energies=true)
expected_sum_rule = Sunny.norm2(sys.dipoles[1]) # S^2 classical sum rule
Expand Down
2 changes: 1 addition & 1 deletion test/test_intensities_setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ end
sum_rule_ixs = Sunny.Trace(sc.observables).indices
sub_lat_sum_rules = sum(sc.data[sum_rule_ixs,:,:,:,:,:,:], dims=[1,4,5,6,7])[1,:,:,1,1,1,1]

Δq³ = 1/prod(sys.latsize) # Fraction of a BZ for one cell
Δq³ = 1/prod(sys.latsize) # Fraction of a BZ
n_all_ω = size(sc.data, 7)
# Intensities in sc.data are a density in q, but already integrated over dω
# bins, and then scaled by n_all_ω. Therefore, we need the factor below to
Expand Down

0 comments on commit d9770f2

Please sign in to comment.