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
96aeacb0
Verified
Commit
96aeacb0
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Update documentation of ADC
parent
e6f6a1f1
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/readouts/ADCs.jl
+12
-5
12 additions, 5 deletions
src/readouts/ADCs.jl
with
12 additions
and
5 deletions
src/readouts/ADCs.jl
+
12
−
5
View file @
96aeacb0
...
@@ -5,18 +5,21 @@ import ...BuildingBlocks: BuildingBlock, apply_simple_constraint!, set_simple_co
...
@@ -5,18 +5,21 @@ import ...BuildingBlocks: BuildingBlock, apply_simple_constraint!, set_simple_co
import
...
BuildSequences
:
global_model
import
...
BuildSequences
:
global_model
"""
"""
ADC(
nsamples; dwell_time=nothing, duration=nothing, time_to_center=duration/2
)
ADC(
; center_halfway=true, oversample=1, variables...
)
Adds a readout event with `nsamples` readouts.
Adds a readout event with `nsamples` readouts.
## Parameters
## Parameters
- `center_halfway`: by default the `time_to_center` is assumed to be half of the `duration`. Set this to false to disable this assumption.
- `center_halfway`: by default the `time_to_center` is assumed to be half of the `duration`. Set this to false to disable this assumption.
- `oversample`: by how much the ADC should oversample (default: 2, unless both `resolution` and `nsamples` are set).
## Variables
## Variables
- `nsamples`: number of samples in the readout. This can be a non-integer value during optimisation
- `resolution`: number of voxels in the readout direction. This can be a non-integer value during optimisation.
- `nsamples`: number of samples in the readout. This can be a non-integer value during optimisation.
- `dwell_time`: Time between each readout sample in ms.
- `dwell_time`: Time between each readout sample in ms.
- `duration`: Total duration of the ADC event in ms.
- `duration`: Total duration of the ADC event in ms.
- `time_to_center`: time till the center of k-space.
- `time_to_center`: time till the center of k-space from start of ADC in ms.
- `effective_time`: same as `time_to_center`.
"""
"""
struct
ADC
<:
BuildingBlock
struct
ADC
<:
BuildingBlock
resolution
::
VariableType
resolution
::
VariableType
...
@@ -25,9 +28,13 @@ struct ADC <: BuildingBlock
...
@@ -25,9 +28,13 @@ struct ADC <: BuildingBlock
oversample
::
VariableType
oversample
::
VariableType
end
end
function
ADC
(;
nsamples
=
nothing
,
dwell_time
=
nothing
,
time_to_center
=
nothing
,
center_halfway
=
true
,
oversample
=
1
,
kwargs
...
)
function
ADC
(;
resolution
=
nothing
,
dwell_time
=
nothing
,
time_to_center
=
nothing
,
center_halfway
=
true
,
oversample
=
nothing
,
kwargs
...
)
if
!
(
:
nsamples
in
keys
(
kwargs
)
&&
!
isnothing
(
resolution
))
&&
isnothing
(
oversample
)
oversample
=
2.
end
res
=
ADC
(
res
=
ADC
(
get_free_variable
(
nsamples
),
get_free_variable
(
resolution
),
get_free_variable
(
dwell_time
),
get_free_variable
(
dwell_time
),
get_free_variable
(
time_to_center
),
get_free_variable
(
time_to_center
),
get_free_variable
(
oversample
),
get_free_variable
(
oversample
),
...
...
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