Start adapting ABCModel implementation to new interfaces
Some checks failed
MetagraphOptimization_CI / test (push) Failing after 7m6s
MetagraphOptimization_CI / docs (push) Failing after 7m15s

This commit is contained in:
2024-08-19 18:37:55 +02:00
parent 0ce98e29ef
commit 994d4d7cee
4 changed files with 69 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
using SafeTestsets
#=
@safetestset "Utility Unit Tests " begin
include("unit_tests_utility.jl")
end
@@ -30,6 +30,7 @@ end
@safetestset "Graph Unit Tests " begin
include("unit_tests_graph.jl")
end
=#
@safetestset "Execution Unit Tests " begin
include("unit_tests_execution.jl")
end

View File

@@ -63,8 +63,14 @@ machine = Machine(
)
process_2_2 = ABCProcessDescription(
Dict{Type, Int64}(ParticleA => 1, ParticleB => 1),
Dict{Type, Int64}(ParticleA => 1, ParticleB => 1),
Dict{Type, Int64}(
ParticleStateful{Incoming, ParticleA, SFourMomentum} => 1,
ParticleStateful{Incoming, ParticleB, SFourMomentum} => 1,
),
Dict{Type, Int64}(
ParticleStateful{Outgoing, ParticleA, SFourMomentum} => 1,
ParticleStateful{Outgoing, ParticleB, SFourMomentum} => 1,
),
)
particles_2_2 = ABCProcessInput(
@@ -106,8 +112,14 @@ end
end
process_2_4 = ABCProcessDescription(
Dict{Type, Int64}(ParticleA => 1, ParticleB => 1),
Dict{Type, Int64}(ParticleA => 1, ParticleB => 3),
Dict{Type, Int64}(
ParticleStateful{Incoming, ParticleA, SFourMomentum} => 1,
ParticleStateful{Incoming, ParticleB, SFourMomentum} => 1,
),
Dict{Type, Int64}(
ParticleStateful{Outgoing, ParticleA, SFourMomentum} => 1,
ParticleStateful{Outgoing, ParticleB, SFourMomentum} => 3,
),
)
particles_2_4 = gen_process_input(process_2_4)
graph = parse_dag(joinpath(@__DIR__, "..", "input", "AB->ABBB.txt"), ABCModel())