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

Add TR variable

parent bdbcd5e1
No related branches found
No related tags found
No related merge requests found
module Sequences module Sequences
import JuMP: Model import JuMP: Model
import ...BuildSequences: @global_model_constructor import ...BuildSequences: @global_model_constructor
import ...Variables: variables, start_time, duration, VariableType, get_free_variable import ...Variables: variables, start_time, duration, VariableType, get_free_variable, TR
import ...BuildingBlocks: BuildingBlock, to_block import ...BuildingBlocks: BuildingBlock, to_block
""" """
...@@ -53,6 +53,8 @@ end_time(seq::Sequence, index::Integer, args...) = start_time(seq, index) + end_ ...@@ -53,6 +53,8 @@ end_time(seq::Sequence, index::Integer, args...) = start_time(seq, index) + end_
duration(seq::Sequence) = end_time(seq, length(seq)) duration(seq::Sequence) = end_time(seq, length(seq))
TR(seq::Sequence) = seq.TR
variables(::Type{<:Sequence}) = [TR]
end end
......
...@@ -5,6 +5,7 @@ import ..Scanners: gradient_strength, slew_rate ...@@ -5,6 +5,7 @@ import ..Scanners: gradient_strength, slew_rate
all_variables_symbols = [ all_variables_symbols = [
# general # general
:duration => (:block, "duration of the building block in ms."), :duration => (:block, "duration of the building block in ms."),
:TR => (:sequence, "Time on which an MRI sequence repeats itself in ms."),
# RF pulse # RF pulse
:flip_angle => (:pulse, "The flip angle of the RF pulse in degrees"), :flip_angle => (:pulse, "The flip angle of the RF pulse in degrees"),
......
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