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
92a3604d
Verified
Commit
92a3604d
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Turn WaitBlock into another GenericOverlapping
parent
486194f6
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/building_blocks.jl
+1
-1
1 addition, 1 deletion
src/building_blocks.jl
src/overlapping/generic.jl
+2
-1
2 additions, 1 deletion
src/overlapping/generic.jl
with
3 additions
and
2 deletions
src/building_blocks.jl
+
1
−
1
View file @
92a3604d
...
@@ -295,6 +295,6 @@ Replaces a [`BuildingBlock`](@ref) or whole sequence with a generic version.
...
@@ -295,6 +295,6 @@ Replaces a [`BuildingBlock`](@ref) or whole sequence with a generic version.
This replaces all functional RF pulses and gradient waveforms with their generic equivalents.
This replaces all functional RF pulses and gradient waveforms with their generic equivalents.
"""
"""
make_generic
(
grad
::
GradientBlock
)
=
gra
d
function
make_generic
en
d
end
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/overlapping/generic.jl
+
2
−
1
View file @
92a3604d
...
@@ -33,12 +33,13 @@ GenericOverlapping(other_waveform::AbstractOverlapping) = GenericOverlapping(dur
...
@@ -33,12 +33,13 @@ GenericOverlapping(other_waveform::AbstractOverlapping) = GenericOverlapping(dur
make_generic
(
ao
::
AbstractOverlapping
)
=
GenericOverlapping
(
make_generic
(
ao
::
AbstractOverlapping
)
=
GenericOverlapping
(
duration
(
ao
),
duration
(
ao
),
make_generic
.
(
waveform_sequence
(
ao
)
)
,
waveform_sequence
(
ao
),
[(
index
=
i
.
index
,
time
=
i
.
time
,
object
=
make_generic
(
i
.
object
))
for
i
in
interruptions
(
ao
)]
[(
index
=
i
.
index
,
time
=
i
.
time
,
object
=
make_generic
(
i
.
object
))
for
i
in
interruptions
(
ao
)]
)
)
waveform_sequence
(
go
::
GenericOverlapping
)
=
go
.
waveform
waveform_sequence
(
go
::
GenericOverlapping
)
=
go
.
waveform
interruptions
(
go
::
GenericOverlapping
)
=
go
.
interruptions
interruptions
(
go
::
GenericOverlapping
)
=
go
.
interruptions
make_generic
(
wait
::
WaitBlock
)
=
GenericOverlapping
(
wait
.
duration
,
[],
[])
end
end
\ No newline at end of file
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