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
7cd8d060
Verified
Commit
7cd8d060
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Fix creation of empty GenericOverlapping
parent
cfe9c40a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/overlapping/generic.jl
+4
-3
4 additions, 3 deletions
src/overlapping/generic.jl
with
4 additions
and
3 deletions
src/overlapping/generic.jl
+
4
−
3
View file @
7cd8d060
module
Generic
module
Generic
import
..
Abstract
:
AbstractOverlapping
,
interruptions
,
duration
,
waveform_sequence
import
..
Abstract
:
AbstractOverlapping
,
interruptions
,
duration
,
waveform_sequence
import
...
Variables
:
VariableType
import
...
Variables
:
VariableType
,
duration
import
...
Wait
:
WaitBlock
import
...
Wait
:
WaitBlock
import
...
Readouts
:
InstantReadout
,
ADC
import
...
Readouts
:
InstantReadout
,
ADC
import
...
Pulses
:
RFPulseBlock
import
...
Pulses
:
RFPulseBlock
...
@@ -21,7 +21,7 @@ struct GenericOverlapping <: AbstractOverlapping
...
@@ -21,7 +21,7 @@ struct GenericOverlapping <: AbstractOverlapping
duration
::
VariableType
duration
::
VariableType
waveform
::
Vector
{
Union
{
WaitBlock
,
GradientBlock
}}
waveform
::
Vector
{
Union
{
WaitBlock
,
GradientBlock
}}
interruptions
::
Vector
{
NamedTuple
{(
:
index
,
:
time
,
:
object
),
Tuple
{
Int64
,
<:
VariableType
,
<:
Union
{
RFPulseBlock
,
InstantReadout
,
ADC
}}}}
interruptions
::
Vector
{
NamedTuple
{(
:
index
,
:
time
,
:
object
),
Tuple
{
Int64
,
<:
VariableType
,
<:
Union
{
RFPulseBlock
,
InstantReadout
,
ADC
}}}}
function
GenericOverlapping
(
duration
::
VariableType
,
waveform
::
AbstractVector
{
<:
Union
{
WaitBlock
,
GradientBlock
}}
,
interruptions
::
AbstractVector
=
[])
function
GenericOverlapping
(
duration
::
VariableType
,
waveform
::
AbstractVector
,
interruptions
::
AbstractVector
=
[])
res
=
new
(
duration
,
waveform
,
interruptions
)
res
=
new
(
duration
,
waveform
,
interruptions
)
scanner_constraints!
.
(
waveform
)
scanner_constraints!
.
(
waveform
)
return
res
return
res
...
@@ -39,7 +39,8 @@ make_generic(ao::AbstractOverlapping) = GenericOverlapping(
...
@@ -39,7 +39,8 @@ make_generic(ao::AbstractOverlapping) = GenericOverlapping(
waveform_sequence
(
go
::
GenericOverlapping
)
=
go
.
waveform
waveform_sequence
(
go
::
GenericOverlapping
)
=
go
.
waveform
interruptions
(
go
::
GenericOverlapping
)
=
go
.
interruptions
interruptions
(
go
::
GenericOverlapping
)
=
go
.
interruptions
duration
(
go
::
GenericOverlapping
)
=
go
.
duration
make_generic
(
wait
::
WaitBlock
)
=
GenericOverlapping
(
wait
.
duration
,
[],
[])
make_generic
(
wait
::
WaitBlock
)
=
GenericOverlapping
(
duration
(
wait
)
,
[],
[])
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