Skip to content

Commit cbabb5d

Browse files
author
Uwe Hernandez Acosta
committed
bump version of EletronicStructureModels to 0.2, fixed tests, removed patches
1 parent 9633b05 commit cbabb5d

File tree

5 files changed

+5
-22
lines changed

5 files changed

+5
-22
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
2525

2626
[compat]
2727
Distributions = "0.25.117"
28-
ElectronicStructureModels = "0.1"
28+
ElectronicStructureModels = "0.2"
2929
HDF5 = "0.17.2"
3030
LinearAlgebra = "1.10"
3131
LogExpFunctions = "0.3.29"

src/max_finder/quantile_reduction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ function _findmax(method::QuantileReductionMethod, weights::AbstractVector)
1515
return weight
1616
end
1717
end
18-
return
18+
return sorted_weights[end]
1919
end

src/patch_QEDcore.jl

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,6 @@ end
2020
coordinate_symbols(in_psl::TwoBodyRestSystem) = coordinate_symbols(in_psl.coord)
2121
@inline coord_index(c_sym, coord_syms)::Int64 = findfirst(x -> x == c_sym, coord_syms)
2222

23-
function QEDcore.PhaseSpacePoint(
24-
p::AbstractProcessDefinition,
25-
m::AbstractModelDefinition,
26-
psl::AbstractPhaseSpaceLayout,
27-
coords::Tuple,
28-
)
29-
30-
in_dim = phase_space_dimension(p, m, in_phase_space_layout(psl))
31-
out_dim = phase_space_dimension(p, m, psl)
32-
return PhaseSpacePoint(
33-
p,
34-
m,
35-
psl,
36-
ntuple(i -> coords[i], in_dim),
37-
ntuple(i -> coords[in_dim + i], out_dim),
38-
)
39-
end
4023

4124
# PSL for heads-on collision
4225

test/setups/probing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const FIELD = DistributionBasedField(PHOTONDIST)
2828

2929
# MEDIUM
3030
const NE = 1.0e21u"cm^(-3)"
31-
const MATTERMODEL = IdealElectronSystem{ZeroTemperature}(NE)
31+
const MATTERMODEL = IdealElectronSystem(NE, ZeroTemperatureApprox())
3232
const SCREENING = Screening()
3333
const MEDIUM = InteractingElectronSystem(MATTERMODEL, SCREENING)
3434

test/test-max_finder.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ const OMEGAS = (rand(RNG), 1.0e2 * rand(RNG), rand(RNG), 1.0e3 * rand(RNG), 1.0e
3434

3535
train!(RNG, VP, MAXITER, NCALLS)
3636

37-
@testset "p: %p" for p in QUANTILES
37+
@testset "p: $p" for p in QUANTILES
3838
test_max_finder = QuantileReductionMethod(p, Int(1.0e6))
3939

4040
test_max_weight = XRTSProbing.findmax(RNG, DCSCACHED, test_max_finder, VP)
4141

42-
@testset "n: %n" for n in (Int(2.0e5), Int(1.0e6))
42+
@testset "n: $n" for n in (Int(2.0e5), Int(1.0e6))
4343
# groundtruth
4444
samples, jac = XRTSProbing._generate_coords(RNG, VP, n)
4545
weights = sort(@. DCSCACHED(samples) * jac)

0 commit comments

Comments
 (0)