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
c23cf83f
Verified
Commit
c23cf83f
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Make ADC a component
parent
03049a86
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/components/readouts/ADCs.jl
+7
-6
7 additions, 6 deletions
src/components/readouts/ADCs.jl
with
7 additions
and
6 deletions
src/components/readouts/ADCs.jl
+
7
−
6
View file @
c23cf83f
module
ADCs
import
JuMP
:
@constraint
,
value
import
...
Variables
:
variables
,
dwell_time
,
duration
,
effective_time
,
get_free_variable
,
VariableType
,
nsamples
,
resolution
,
oversample
,
make_generic
import
...
BuildingBlocks
:
BuildingBlock
,
apply_simple_constraint!
,
set_simple_constraints!
,
fixed
,
make_generic
import
...
BuildSequences
:
global_model
import
JuMP
:
@constraint
import
...
AbstractTypes
:
ReadoutComponent
import
....
BuildSequences
:
global_model
,
fixed
import
....
Variables
:
oversample
,
nsamples
,
dwell_time
,
duration
,
time_to_center
,
effective_time
,
resolution
,
VariableType
,
apply_simple_constraint!
,
set_simple_constraints!
,
get_free_variable
,
make_generic
"""
ADC(; center_halfway=true, oversample=1, variables...)
Adds a readout event
with `nsamples` readouts
.
Adds a readout event.
## 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.
...
...
@@ -21,7 +22,7 @@ Adds a readout event with `nsamples` readouts.
- `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
<:
ReadoutComponent
resolution
::
VariableType
dwell_time
::
VariableType
time_to_center
::
VariableType
...
...
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