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

Move pulseq to IO module

parent d76d3140
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ include("pathways.jl")
include("parts/parts.jl")
include("sequences/sequences.jl")
include("printing.jl")
include("pulseq.jl")
include("sequence_io/sequence_io.jl")
include("plot.jl")
import .BuildSequences: build_sequence, global_model, global_scanner, fixed
......@@ -39,8 +39,8 @@ export dwi_gradients, readout_event, excitation_pulse, refocus_pulse, Trapezoid,
import .Sequences: GradientEcho, SpinEcho, DiffusionSpinEcho, DW_SE, DWI
export GradientEcho, SpinEcho, DiffusionSpinEcho, DW_SE, DWI
import .Pulseq: read_pulseq
export read_pulseq
import .SequenceIO: read_sequence
export read_sequence
import .Plot: plot_sequence
export plot_sequence
......
module Pulseq
import ..Variables: duration
import ..Scanners: Scanner
import ..Components: GenericPulse, GradientWaveform, ADC
import ..Containers: BuildingBlock, Sequence, Wait
import ...Variables: duration
import ...Scanners: Scanner
import ...Components: GenericPulse, GradientWaveform, ADC
import ...Containers: BuildingBlock, Sequence, Wait
import DataStructures: OrderedDict
import Interpolations: linear_interpolation, Flat
import StaticArrays: SVector
......
module SequenceIO
include("pulseq.jl")
import .Pulseq: read_pulseq
function read_sequence(filename::AbstractString)
if endswith(filename, ".seq")
return read_pulseq(filename)
else
error("Cannot read file $filename. Extension is not recognised")
end
end
end
\ No newline at end of file
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