Skip to content

Commit a864c16

Browse files
Qualify total_cross_section calls (#80)
Since `total_cross_section` moves to QEDbase, we need to qualify the calls here for now in order for integration tests to work. Once we remove the implementation here, the `QEDbase.` calls will automatically fail and need to be removed as well.
1 parent e8d552b commit a864c16

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/cross_sections.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ TESTPSDEF = TestImplementation.TestPhasespaceDef()
7171
)
7272

7373
groundtruth = TestImplementation._groundtruth_total_cross_section(p_in_phys)
74-
totCS_on_moms = total_cross_section(IN_PS_POINT)
75-
totCS_on_coords = total_cross_section(IN_PS_POINT_COORDS)
74+
totCS_on_moms = QEDprocesses.total_cross_section(IN_PS_POINT)
75+
totCS_on_coords = QEDprocesses.total_cross_section(IN_PS_POINT_COORDS)
7676

7777
@test isapprox(totCS_on_moms, groundtruth, atol=ATOL, rtol=RTOL)
7878
@test isapprox(totCS_on_coords, groundtruth, atol=ATOL, rtol=RTOL)

test/processes/one_photon_compton/perturbative.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ end
139139

140140
IN_COORDS = (omega,)
141141
groundtruth = klein_nishina_total_cross_section(IN_COORDS)
142-
test_val = @inferred total_cross_section(
142+
test_val = @inferred QEDprocesses.total_cross_section(
143143
InPhaseSpacePoint(PROC, MODEL, PS_DEF, IN_COORDS)
144144
)
145145
@test isapprox(test_val, groundtruth, atol=ATOL, rtol=RTOL)
@@ -148,7 +148,7 @@ end
148148
Iterators.product(COS_THETAS, PHIS)
149149
OUT_COORDS = (cos_theta, phi)
150150

151-
test_val = @inferred total_cross_section(
151+
test_val = @inferred QEDprocesses.total_cross_section(
152152
PhaseSpacePoint(PROC, MODEL, PS_DEF, IN_COORDS, OUT_COORDS)
153153
)
154154
@test isapprox(test_val, groundtruth, atol=ATOL, rtol=RTOL)
@@ -157,7 +157,7 @@ end
157157
PhaseSpacePoint(PROC, MODEL, PS_DEF, IN_COORDS, OUT_COORDS),
158158
QEDbase.Outgoing(),
159159
)
160-
@test_throws MethodError total_cross_section(
160+
@test_throws MethodError QEDprocesses.total_cross_section(
161161
OutPhaseSpacePoint(PROC, MODEL, PS_DEF, out_moms)
162162
)
163163
end

0 commit comments

Comments
 (0)