Skip to content
Snippets Groups Projects
Verified Commit c23cf83f authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Make ADC a component

parent 03049a86
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment