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
6c1cdac1
Verified
Commit
6c1cdac1
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Fix waveform_sequence between events
parent
277ebe21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/all_building_blocks/base_building_blocks.jl
+4
-4
4 additions, 4 deletions
src/all_building_blocks/base_building_blocks.jl
with
4 additions
and
4 deletions
src/all_building_blocks/base_building_blocks.jl
+
4
−
4
View file @
6c1cdac1
module
BaseBuildingBlocks
import
...
ContainerBlocks
:
ContainerBlock
import
...
Components
:
BaseComponent
,
GradientWaveform
,
EventComponent
,
NoGradient
,
ChangingGradient
,
ConstantGradient
,
split_gradient
import
...
Variables
:
qval
,
bmat_gradient
import
...
Variables
:
qval
,
bmat_gradient
,
effective_time
"""
Basic BuildingBlock, which can consist of a gradient waveforms with any number of RF pulses/readouts overlaid
...
...
@@ -122,14 +122,14 @@ function waveform_sequence(bb::BaseBuildingBlock, first, last)
if
key
==
first
@assert
!
started
started
=
true
current_start
ed
=
effective_time
(
bb
[
key
])
current_start
=
effective_time
(
bb
[
key
])
end
if
key
==
last
@assert
started
if
isnothing
(
current_start
ed
)
if
isnothing
(
current_start
)
push!
(
parts
,
(
current_grad_key
,
split_gradient
(
bb
[
current_grad_key
],
effective_time
(
bb
[
key
]))[
1
]))
else
push!
(
parts
,
(
current_grad_key
,
split_gradient
(
bb
[
current_grad_key
],
current_start
ed
,
effective_time
(
bb
[
key
]))[
2
]))
push!
(
parts
,
(
current_grad_key
,
split_gradient
(
bb
[
current_grad_key
],
current_start
,
effective_time
(
bb
[
key
]))[
2
]))
end
end
end
...
...
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