Add writing to Pulseq files
Compare changes
- Michiel Cottaar authored
+ 210
− 65
@@ -115,7 +90,18 @@ function parse_pulseq_sections(io::IO)
@@ -148,8 +134,8 @@ struct PulseqTrapezoid <:AnyPulseqGradient
@@ -176,6 +162,69 @@ struct PulseqSequence
@@ -195,8 +244,16 @@ function parse_all_sections(sections:: Dict{String, PulseqSection})
@@ -301,36 +358,9 @@ function uncompress(compressed::CompressedPulseqShape)
@@ -388,6 +418,24 @@ function parse_section(section::PulseqSection{:rf}; shapes::Dict{Int, PulseqShap
@@ -415,16 +463,24 @@ function parse_section(section::PulseqSection{:gradients}; shapes::Dict{Int, Pul
@@ -444,6 +500,25 @@ function parse_section(section::PulseqSection{:trap}; kwargs...)
@@ -463,6 +538,22 @@ function parse_section(section::PulseqSection{:adc}; kwargs...)
@@ -522,4 +613,58 @@ function parse_section(section::PulseqSection{:blocks}; version, rf=Dict(), grad
\ No newline at end of file