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

Fix I/O of sequence name

parent 1427f18a
No related branches found
No related tags found
1 merge request!1Add writing to Pulseq files
...@@ -15,7 +15,7 @@ function Sequence(pulseq::PulseqSequence; scanner=nothing, B0=nothing) ...@@ -15,7 +15,7 @@ function Sequence(pulseq::PulseqSequence; scanner=nothing, B0=nothing)
scanner = Scanner(B0=use_B0) scanner = Scanner(B0=use_B0)
end end
blocks = BuildingBlock.(pulseq.blocks; pulseq.definitions...) blocks = BuildingBlock.(pulseq.blocks; pulseq.definitions...)
return Sequence(blocks; name=Symbol(get(pulseq.definitions, :name, "from_pulseq")), scanner=scanner) return Sequence(blocks; name=Symbol(get(pulseq.definitions, :Name, "from_pulseq")), scanner=scanner)
end end
...@@ -92,7 +92,7 @@ end ...@@ -92,7 +92,7 @@ end
function PulseqSequence(seq::Sequence{S}) where {S} function PulseqSequence(seq::Sequence{S}) where {S}
definitions = ( definitions = (
name=S, Name=S,
AdcRasterTime=1e-9, AdcRasterTime=1e-9,
BlockDurationRaster=1e-9, BlockDurationRaster=1e-9,
RadiofrequencyRasterTime=1e-9, RadiofrequencyRasterTime=1e-9,
......
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