Add resampling extension #127
Annotations
10 errors
|
build:
src/transforms/resampler.jl#L50
doctest failure in src/transforms/resampler.jl:50-67
```jldoctest resampling
julia> using Interpolations: linear_interpolation, Flat
julia> interp = linear_interpolation(wave(spec), flux(spec); extrapolation_bc = Flat());
julia> resampler = SpectrumResampler(spec, interp);
julia> result = resampler(wave_sampled);
julia> result isa Spectrum
true
julia> wave(result) == wave_sampled
true
julia> flux(result) == interp(wave_sampled)
true
```
Subexpression:
result = resampler(wave_sampled);
Evaluated output:
ERROR: UndefVarError: `resampler` not defined in `Main`
Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
diff =
Warning: Diff output requires color.
ERROR: UndefVarError: `resampler` not defined in `Main`
Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/transforms/resampler.jl#L50
doctest failure in src/transforms/resampler.jl:50-67
```jldoctest resampling
julia> using Interpolations: linear_interpolation, Flat
julia> interp = linear_interpolation(wave(spec), flux(spec); extrapolation_bc = Flat());
julia> resampler = SpectrumResampler(spec, interp);
julia> result = resampler(wave_sampled);
julia> result isa Spectrum
true
julia> wave(result) == wave_sampled
true
julia> flux(result) == interp(wave_sampled)
true
```
Subexpression:
resampler = SpectrumResampler(spec, interp);
Evaluated output:
ERROR: UndefVarError: `interp` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
diff =
Warning: Diff output requires color.
ERROR: UndefVarError: `interp` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/transforms/resampler.jl#L50
doctest failure in src/transforms/resampler.jl:50-67
```jldoctest resampling
julia> using Interpolations: linear_interpolation, Flat
julia> interp = linear_interpolation(wave(spec), flux(spec); extrapolation_bc = Flat());
julia> resampler = SpectrumResampler(spec, interp);
julia> result = resampler(wave_sampled);
julia> result isa Spectrum
true
julia> wave(result) == wave_sampled
true
julia> flux(result) == interp(wave_sampled)
true
```
Subexpression:
interp = linear_interpolation(wave(spec), flux(spec); extrapolation_bc = Flat());
Evaluated output:
ERROR: UndefVarError: `wave` not defined in `Main`
Suggestion: this global was defined as `Spectra.wave` but not assigned a value.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
diff =
Warning: Diff output requires color.
ERROR: UndefVarError: `wave` not defined in `Main`
Suggestion: this global was defined as `Spectra.wave` but not assigned a value.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/transforms/resampler.jl#L37
doctest failure in src/transforms/resampler.jl:37-46
```jldoctest resampling
julia> result isa Spectrum
true
julia> wave(result) == wave_sampled
true
julia> flux(result) == interp(wave_sampled)
true
```
Subexpression:
flux(result) == interp(wave_sampled)
Evaluated output:
ERROR: UndefVarError: `flux` not defined in `Main`
Suggestion: this global was defined as `Spectra.flux` but not assigned a value.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
true
diff =
Warning: Diff output requires color.
trueERROR: UndefVarError: `flux` not defined in `Main`
Suggestion: this global was defined as `Spectra.flux` but not assigned a value.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/transforms/resampler.jl#L37
doctest failure in src/transforms/resampler.jl:37-46
```jldoctest resampling
julia> result isa Spectrum
true
julia> wave(result) == wave_sampled
true
julia> flux(result) == interp(wave_sampled)
true
```
Subexpression:
wave(result) == wave_sampled
Evaluated output:
ERROR: UndefVarError: `wave` not defined in `Main`
Suggestion: this global was defined as `Spectra.wave` but not assigned a value.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
true
diff =
Warning: Diff output requires color.
trueERROR: UndefVarError: `wave` not defined in `Main`
Suggestion: this global was defined as `Spectra.wave` but not assigned a value.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/transforms/resampler.jl#L37
doctest failure in src/transforms/resampler.jl:37-46
```jldoctest resampling
julia> result isa Spectrum
true
julia> wave(result) == wave_sampled
true
julia> flux(result) == interp(wave_sampled)
true
```
Subexpression:
result isa Spectrum
Evaluated output:
ERROR: UndefVarError: `result` not defined in `Main`
Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
true
diff =
Warning: Diff output requires color.
trueERROR: UndefVarError: `result` not defined in `Main`
Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/transforms/resampler.jl#L31
doctest failure in src/transforms/resampler.jl:31-33
```jldoctest resampling
julia> result = resampler(wave_sampled);
```
Subexpression:
result = resampler(wave_sampled);
Evaluated output:
ERROR: UndefVarError: `resampler` not defined in `Main`
Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
diff =
Warning: Diff output requires color.
ERROR: UndefVarError: `resampler` not defined in `Main`
Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/transforms/resampler.jl#L23
doctest failure in src/transforms/resampler.jl:23-27
```jldoctest resampling
julia> resampler = SpectrumResampler(spec, interp);
julia> wave_sampled = [10, 50, 90, 130, 140, 170, 210, 220, 230];
```
Subexpression:
resampler = SpectrumResampler(spec, interp);
Evaluated output:
ERROR: UndefVarError: `interp` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
diff =
Warning: Diff output requires color.
ERROR: UndefVarError: `interp` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/transforms/resampler.jl#L10
doctest failure in src/transforms/resampler.jl:10-19
```jldoctest resampling
julia> using Spectra: spectrum, flux, wave, SpectrumResampler
julia> using DataInterpolations: LinearInterpolation, ExtrapolationType
julia> spec = spectrum([20, 40, 120, 160, 200], [1, 3, 7, 6, 20]);
julia> interp = LinearInterpolation(flux(spec), wave(spec);
extrapolation = ExtrapolationType.Constant);
```
Subexpression:
interp = LinearInterpolation(flux(spec), wave(spec);
extrapolation = ExtrapolationType.Constant);
Evaluated output:
ERROR: UndefVarError: `flux` not defined in `Main`
Suggestion: this global was defined as `Spectra.flux` but not assigned a value.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
diff =
Warning: Diff output requires color.
ERROR: UndefVarError: `flux` not defined in `Main`
Suggestion: this global was defined as `Spectra.flux` but not assigned a value.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/transforms/resampler.jl#L10
doctest failure in src/transforms/resampler.jl:10-19
```jldoctest resampling
julia> using Spectra: spectrum, flux, wave, SpectrumResampler
julia> using DataInterpolations: LinearInterpolation, ExtrapolationType
julia> spec = spectrum([20, 40, 120, 160, 200], [1, 3, 7, 6, 20]);
julia> interp = LinearInterpolation(flux(spec), wave(spec);
extrapolation = ExtrapolationType.Constant);
```
Subexpression:
using Spectra: spectrum, flux, wave, SpectrumResampler
Evaluated output:
WARNING: Imported binding Spectra.flux was undeclared at import time during import to
WARNING: Imported binding Spectra.wave was undeclared at import time during import to
Expected output:
diff =
Warning: Diff output requires color.
WARNING: Imported binding Spectra.flux was undeclared at import time during import to
WARNING: Imported binding Spectra.wave was undeclared at import time during import to
|