radis.test.spectrum.test_operations moduleΒΆ

Created on Sun Aug 5 14:26:44 2018

@author: erwan

test_TestBaseline(plot=False, *args, **kwargs)[source]ΒΆ
test_crop(verbose=True, *args, **kwargs)[source]ΒΆ

Test that update can correctly recompute missing quantities

test_cut_recombine(verbose=True, *args, **kwargs)[source]ΒΆ

Use crop() and MergeSlabs() to cut a Spectrum and recombine it

Assert we still get the same spectrum at the end

test_dimensioned_operations(*args, **kwargs)[source]ΒΆ
test_get_baseline(plot=False, *args, **kwargs)[source]ΒΆ
test_invariants(*args, **kwargs)[source]ΒΆ

Ensures adding 0 or multiplying by 1 does not change the spectra

test_multiplyAndAddition(verbose=True, plot=False, *args, **kwargs)[source]ΒΆ
test_offset(verbose=True, plot=False, *args, **kwargs)[source]ΒΆ
test_operations_inplace(verbose=True, *args, **kwargs)[source]ΒΆ
test_other_algebraic_operations(verbose=True, plot=False, *args, **kwargs)[source]ΒΆ
test_resample_even(*args, **kwargs)[source]ΒΆ

Test resample_even() , and that apply_slit() properly fails if Spectrum is not evenly distributed

test_serial_operator(verbose=True, plot=False, *args, **kwargs)[source]ΒΆ