File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 3
3
A = ampls(r::RF)
4
4
A = ampls(d::ADC)
5
5
6
- Get the theoretical amplitudes for Grad, RF or ADC structs .
6
+ Get amplitude samples of MRI sequence event .
7
7
8
8
# Arguments
9
9
- `gr`: (`::Grad`) Gradient struct
10
10
- `rf`: (`::RF`) RF struct
11
- - `adc`: (`::ADC`) ADC truct
11
+ - `adc`: (`::ADC`) ADC struct
12
12
13
13
# Returns
14
- - `A`: (`::Vector{Number}`) vector with the amplitude theoretical points
14
+ - `A`: (`::Vector{Number}`) vector with amplitude samples
15
15
"""
16
16
function ampls (gr:: Grad )
17
17
if ! is_on (gr)
@@ -41,6 +41,17 @@ function ampls(rf::RF; freq_in_phase=false)
41
41
end
42
42
return A
43
43
end
44
+ """
45
+ f = freqs(r::RF)
46
+
47
+ Get frequency samples of MRI sequence event.
48
+
49
+ # Arguments
50
+ - `rf`: (`::RF`) RF struct
51
+
52
+ # Returns
53
+ - `f`: (`::Vector{Number}`) vector with frequency samples
54
+ """
44
55
function freqs (rf:: RF )
45
56
if ! is_on (rf)
46
57
return Float64[]
65
76
t = times(rf::RF)
66
77
t = times(adc::ADC)
67
78
68
- Get the theoretical times for Grad, RF or ADC structs .
79
+ Get time samples of MRI sequence event .
69
80
70
81
# Arguments
71
82
- `gr`: (`::Grad`) Gradient struct
72
83
- `rf`: (`::RF`) RF struct
73
- - `adc`: (`::ADC`) ADC truct
84
+ - `adc`: (`::ADC`) ADC struct
74
85
75
86
# Returns
76
- - `t`: (`::Vector{Number}`) vector with the time theoretical points
87
+ - `t`: (`::Vector{Number}`) vector with time samples
77
88
"""
78
89
function times (gr:: Grad )
79
90
if ! is_on (gr)
Original file line number Diff line number Diff line change @@ -90,8 +90,9 @@ is_ADC_on
90
90
DiscreteSequence
91
91
discretize
92
92
get_samples
93
- time
94
- ampl
93
+ times
94
+ ampls
95
+ freqs
95
96
```
96
97
97
98
### Other functions
You can’t perform that action at this time.
0 commit comments