Skip to content

Commit

Permalink
Add RawAcquisitionData test
Browse files Browse the repository at this point in the history
  • Loading branch information
rkierulf authored Aug 22, 2024
1 parent c309ab6 commit 8de0998
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion KomaMRICore/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,26 @@ const CI = get(ENV, "CI", nothing)
@test true
end

# Test ISMRMRD
@testitem "ISMRMRD" tags=[:core] begin
using Suppressor
include("initialize_backend.jl")

seq = PulseDesigner.EPI_example()
sys = Scanner()
obj = brain_phantom2D()
parts = kfoldperm(length(obj), 2)

sim_params = KomaMRICore.default_sim_params()
sim_params["return_type"] = "raw"
sim_params["gpu"] = USE_GPU

sig1 = @suppress simulate(obj[parts[1]], seq, sys; sim_params)
sig2 = @suppress simulate(obj[parts[2]], seq, sys; sim_params)
sig = @suppress simulate(obj, seq, sys; sim_params)

@test isapprox(sig, sig1 + sig2; rtol=0.001)
end

@testitem "signal_to_raw_data" tags=[:core] begin
using Suppressor
include("initialize_backend.jl")
Expand Down

0 comments on commit 8de0998

Please sign in to comment.