Skip to content

Commit 83f0e22

Browse files
committed
Try doctest filters
1 parent b19c42d commit 83f0e22

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

NFFTTools/src/Toeplitz.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Calculate the kernel for an implementation of the Gram matrix that utilizes its
2020
- `kwargs`: Passed on to [`plan_fft!`](https://juliamath.github.io/AbstractFFTs.jl/stable/api/#AbstractFFTs.plan_fft!) via `NFFTPlan`; can be used to modify the flags `flags=FFTW.ESTIMATE, timelimit=Inf`.
2121
2222
# Examples
23-
```jldoctest; output = false, setup = :(using NFFT, NFFTTools, StableRNGs, Random; rng = StableRNG(1); Random.seed!(rng, 1); Random.seed!(rng, 1))
23+
```jldoctest; output = false, filter = r"(\d*)\.(\d{4})\d+" => s"\1.\2***, setup = :(using NFFT, NFFTTools, StableRNGs, Random; rng = StableRNG(1); Random.seed!(rng, 1); Random.seed!(rng, 1))
2424
julia> Nx = 32;
2525
2626
julia> trj = Float32.(rand(rng, 2, 1000) .- 0.5);
@@ -96,7 +96,7 @@ Calculate the kernel for an implementation of the Gram matrix that utilizes its
9696
- `fftplan`: plan for the final FFT of the kernel from image to k-space. Therefore, it has to have twice the size of the original image. Calculate, e.g., with `fftplan = plan_fft(zeros(Complex{T}, 2 .* shape); flags=FFTW.MEASURE)`, where `shape` is the size of the reconstructed image.
9797
9898
# Examples
99-
```jldoctest; output = false, setup = :(using NFFT, NFFTTools, NFFTTools.FFTW, StableRNGs, Random; rng = StableRNG(1); Random.seed!(rng, 1); Random.seed!(rng, 1))
99+
```jldoctest; output = false, filter = r"(\d*)\.(\d{4})\d+" => s"\1.\2***, setup = :(using NFFT, NFFTTools, NFFTTools.FFTW, StableRNGs, Random; rng = StableRNG(1); Random.seed!(rng, 1); Random.seed!(rng, 1))
100100
julia> using NFFTTools.FFTW
101101
102102
julia> Nx = 32;
@@ -175,7 +175,7 @@ Convolves the image `y` with the Toeplitz kernel `λ` and overwrites `y` with th
175175
- `xOS2`: pre-allocated array of the size of `λ`. Pre-allocate with `xOS2 = similar(λ)`.
176176
177177
# Examples
178-
```jldoctest; output = false, setup = :(using NFFT, NFFTTools, NFFTTools.FFTW, StableRNGs, Random; rng = StableRNG(1); Random.seed!(rng, 1))
178+
```jldoctest; output = false, filter = r"(\d*)\.(\d{4})\d+" => s"\1.\2***, setup = :(using NFFT, NFFTTools, NFFTTools.FFTW, StableRNGs, Random; rng = StableRNG(1); Random.seed!(rng, 1))
179179
julia> using NFFTTools.FFTW
180180
181181
julia> Nx = 32;

docs/make.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ makedocs(;
3030
#"Implementation" => "implementation.md",
3131
"AbstractNFFTs" => "abstract.md",
3232
"API" => "api.md",
33-
]
33+
],
34+
doctestfilters = [r"(\d*)\.(\d{2})\d+" => s"\1.\2***"]
3435
)
3536

3637
deploydocs(repo = "github.com/JuliaMath/NFFT.jl.git")

0 commit comments

Comments
 (0)