Skip to content
Snippets Groups Projects
Unverified Commit f135c204 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Reduce precision for custom sequence tests

parent a31143a6
No related branches found
No related tags found
1 merge request!3Add InstantPulse and InstantGradient pulseq extension support
......@@ -118,12 +118,12 @@
write_sequence(io, seq_orig; format=format)
seek(io, 0)
seq_json = read_sequence(io; format=format)
@test variables.duration(seq_orig) variables.duration(seq_json)
@test isapprox(variables.duration(seq_orig), variables.duration(seq_json), atol=1e-5)
@test length(seq_orig) == length(seq_json)
@test all(variables.duration.(seq_orig) . variables.duration.(seq_json))
@test all(isapprox.(variables.duration.(seq_orig), variables.duration.(seq_json), atol=1e-5))
@test length(iter_instant_gradients(seq_json)) == length(iter_instant_gradients(seq_json))
@test length(iter_instant_pulses(seq_json)) == length(iter_instant_pulses(seq_json))
@test all(variables.readout_times(seq_json) . variables.readout_times(seq_orig))
@test all(isapprox.(variables.readout_times(seq_orig), variables.readout_times(seq_json), atol=1e-5))
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment