Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MRIBuilder.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
MRIBuilder.jl
Commits
5cbbe8ec
Verified
Commit
5cbbe8ec
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Add TR variable
parent
bdbcd5e1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/containers/sequences.jl
+3
-1
3 additions, 1 deletion
src/containers/sequences.jl
src/variables.jl
+1
-0
1 addition, 0 deletions
src/variables.jl
with
4 additions
and
1 deletion
src/containers/sequences.jl
+
3
−
1
View file @
5cbbe8ec
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
...
...
This diff is collapsed.
Click to expand it.
src/variables.jl
+
1
−
0
View file @
5cbbe8ec
...
@@ -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"
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment