Skip to content

Commit ebf8b91

Browse files
committed
Fixed docs after rename of times ampls and freqs [skip ci]
1 parent b0fc372 commit ebf8b91

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

KomaMRIBase/src/timing/KeyValuesCalculation.jl

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
A = ampls(r::RF)
44
A = ampls(d::ADC)
55
6-
Get the theoretical amplitudes for Grad, RF or ADC structs.
6+
Get amplitude samples of MRI sequence event.
77
88
# Arguments
99
- `gr`: (`::Grad`) Gradient struct
1010
- `rf`: (`::RF`) RF struct
11-
- `adc`: (`::ADC`) ADC truct
11+
- `adc`: (`::ADC`) ADC struct
1212
1313
# Returns
14-
- `A`: (`::Vector{Number}`) vector with the amplitude theoretical points
14+
- `A`: (`::Vector{Number}`) vector with amplitude samples
1515
"""
1616
function ampls(gr::Grad)
1717
if !is_on(gr)
@@ -41,6 +41,17 @@ function ampls(rf::RF; freq_in_phase=false)
4141
end
4242
return A
4343
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+
"""
4455
function freqs(rf::RF)
4556
if !is_on(rf)
4657
return Float64[]
@@ -65,15 +76,15 @@ end
6576
t = times(rf::RF)
6677
t = times(adc::ADC)
6778
68-
Get the theoretical times for Grad, RF or ADC structs.
79+
Get time samples of MRI sequence event.
6980
7081
# Arguments
7182
- `gr`: (`::Grad`) Gradient struct
7283
- `rf`: (`::RF`) RF struct
73-
- `adc`: (`::ADC`) ADC truct
84+
- `adc`: (`::ADC`) ADC struct
7485
7586
# Returns
76-
- `t`: (`::Vector{Number}`) vector with the time theoretical points
87+
- `t`: (`::Vector{Number}`) vector with time samples
7788
"""
7889
function times(gr::Grad)
7990
if !is_on(gr)

docs/src/reference/2-koma-base.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ is_ADC_on
9090
DiscreteSequence
9191
discretize
9292
get_samples
93-
time
94-
ampl
93+
times
94+
ampls
95+
freqs
9596
```
9697

9798
### Other functions

0 commit comments

Comments
 (0)