repo_id stringclasses 400
values | commit_sha stringclasses 400
values | commit_index int32 0 951 | in_repo_split stringclasses 1
value | cross_repo_split stringclasses 1
value | test_file stringlengths 7 121 | test_function stringlengths 1 108 | assertion_type stringclasses 32
values | difficulty stringclasses 8
values | context_lines int32 3 600 | prefix large_stringlengths 44 113k | target large_stringlengths 1 498 | anchor_sha stringclasses 400
values | anchor_index int32 0 951 | qna_source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_downcoef_multilevel | assert_* | variable | 19 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_downcoef_multilevel():
rstate = np.random.RandomState(1234)
r = rstate.randn(16)
nlevels = 3
# calling with level=1 nlevels times
... | a3) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_dwt_max_level | assert_* | numeric_literal | 27 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_dwt_max_level():
assert_(pywt.dwt_max_level(16, 2) == 4)
assert_(pywt.dwt_max_level(16, 8) == 1)
assert_(pywt.dwt_max_level(16, 9) == ... | -1) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_dwt_max_level | assert_* | numeric_literal | 28 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_dwt_max_level():
assert_(pywt.dwt_max_level(16, 2) == 4)
assert_(pywt.dwt_max_level(16, 8) == 1)
assert_(pywt.dwt_max_level(16, 9) == ... | 3.3) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_upcoef_reconstruct | assert_* | variable | 16 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_upcoef_reconstruct():
data = np.arange(3)
a = pywt.downcoef('a', data, 'haar')
d = pywt.downcoef('d', data, 'haar')
rec = (pywt.u... | data) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_downcoef_complex | assert_* | variable | 16 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_downcoef_complex():
rstate = np.random.RandomState(1234)
r = rstate.randn(16) + 1j * rstate.randn(16)
nlevels = 3
a = pywt.downcoe... | a_ref) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_downcoef_errs | assert_* | string_literal | 11 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_downcoef_errs():
# invalid part string (not 'a' or 'd')
assert_raises(ValueError, pywt.downcoef, 'f', np.ones(16), | 'haar') | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_dwt_max_level | assert_* | string_literal | 23 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_dwt_max_level():
assert_(pywt.dwt_max_level(16, 2) == 4)
assert_(pywt.dwt_max_level(16, 8) == 1)
assert_(pywt.dwt_max_level(16, 9) == ... | 'mexh') | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_ContinuousWavelet_errs | assert_* | string_literal | 10 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_ContinuousWavelet_errs():
assert_raises(ValueError, pywt.ContinuousWavelet, | 'qwertz') | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_compare_downcoef_coeffs | assert_* | complex_expr | 25 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_compare_downcoef_coeffs():
rstate = np.random.RandomState(1234)
r = rstate.randn(16)
# compare downcoef against wavedec outputs
fo... | coeffs[0]) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_compare_downcoef_coeffs | assert_* | complex_expr | 26 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_compare_downcoef_coeffs():
rstate = np.random.RandomState(1234)
r = rstate.randn(16)
# compare downcoef against wavedec outputs
fo... | coeffs[1]) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test__pywt.py | test_wavelist | assert_* | complex_expr | 19 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
def test_wavelist():
for name in pywt.wavelist(family='coif'):
assert_(name.startswith('coif'))
assert_('cgau7' in pywt.wavelist(kind='con... | pywt.wavelist) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_concurrent.py | test_concurrent_cwt | assert_* | variable | 44 | from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from functools import partial
from numpy.testing import assert_array_equal, assert_allclose
from pywt._pytest import uses_futures, futures, max_workers
import pywt
def _assert_all_coeffs_equal(coefs1, coefs2):
# r... | a2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_concurrent.py | _assert_all_coeffs_equal | assert_* | complex_expr | 24 | from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from functools import partial
from numpy.testing import assert_array_equal, assert_allclose
from pywt._pytest import uses_futures, futures, max_workers
import pywt
def _assert_all_coeffs_equal(coefs1, coefs2):
# r... | c2[k]) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_cwt_wavelets.py | test_shan | assert_* | variable | 110 | from __future__ import division, print_function, absolute_import
from numpy.testing import (assert_allclose, assert_warns, assert_almost_equal,
assert_raises)
import numpy as np
import pywt
def ref_gaus(LB, UB, N, num):
X = np.linspace(LB, UB, N)
F0 = (2./np.pi)**(1./4.)*np.exp(-(X*... | x) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_cwt_wavelets.py | test_shan | assert_* | variable | 102 | from __future__ import division, print_function, absolute_import
from numpy.testing import (assert_allclose, assert_warns, assert_almost_equal,
assert_raises)
import numpy as np
import pywt
def ref_gaus(LB, UB, N, num):
X = np.linspace(LB, UB, N)
F0 = (2./np.pi)**(1./4.)*np.exp(-(X*... | Fc) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_cwt_wavelets.py | test_shan | assert_* | variable | 103 | from __future__ import division, print_function, absolute_import
from numpy.testing import (assert_allclose, assert_warns, assert_almost_equal,
assert_raises)
import numpy as np
import pywt
def ref_gaus(LB, UB, N, num):
X = np.linspace(LB, UB, N)
F0 = (2./np.pi)**(1./4.)*np.exp(-(X*... | Fb) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_data.py | test_wavelab_signals | assert_* | numeric_literal | 39 | import os
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_
import pywt.data
data_dir = os.path.join(os.path.dirname(__file__), 'data')
wavelab_data_file = os.path.join(data_dir, 'wavelab_test_signals.npz')
wavelab_result_dict = np.load(wavelab_data_file)
def test_wavelab_signals()... | 0) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_data.py | test_data_aero | assert_* | variable | 19 | import os
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_
import pywt.data
data_dir = os.path.join(os.path.dirname(__file__), 'data')
wavelab_data_file = os.path.join(data_dir, 'wavelab_test_signals.npz')
wavelab_result_dict = np.load(wavelab_data_file)
def test_data_aero():
... | ref) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_data.py | test_wavelab_signals | assert_* | numeric_literal | 36 | import os
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_
import pywt.data
data_dir = os.path.join(os.path.dirname(__file__), 'data')
wavelab_data_file = os.path.join(data_dir, 'wavelab_test_signals.npz')
wavelab_result_dict = np.load(wavelab_data_file)
def test_wavelab_signals()... | 512) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_data.py | test_wavelab_signals | assert_* | variable | 33 | import os
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_
import pywt.data
data_dir = os.path.join(os.path.dirname(__file__), 'data')
wavelab_data_file = os.path.join(data_dir, 'wavelab_test_signals.npz')
wavelab_result_dict = np.load(wavelab_data_file)
def test_wavelab_signals()... | key) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_data.py | test_wavelab_signals | assert_* | complex_expr | 28 | import os
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_
import pywt.data
data_dir = os.path.join(os.path.dirname(__file__), 'data')
wavelab_data_file = os.path.join(data_dir, 'wavelab_test_signals.npz')
wavelab_result_dict = np.load(wavelab_data_file)
def test_wavelab_signals()... | val.size) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_data.py | test_wavelab_signals | assert_* | func_call | 26 | import os
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_
import pywt.data
data_dir = os.path.join(os.path.dirname(__file__), 'data')
wavelab_data_file = os.path.join(data_dir, 'wavelab_test_signals.npz')
wavelab_result_dict = np.load(wavelab_data_file)
def test_wavelab_signals()... | pywt.data.demo_signal(signal)) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_deprecations.py | test_scal2frq_deprecation | assert_* | numeric_literal | 11 | import warnings
import numpy as np
from numpy.testing import assert_warns, assert_array_equal
import pywt
def test_scal2frq_deprecation():
wavelet = pywt.Wavelet('db3')
assert_warns(DeprecationWarning, pywt.scal2frq, wavelet, | 1) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_deprecations.py | test_MODES_from_object_deprecation | assert_* | variable | 11 | import warnings
import numpy as np
from numpy.testing import assert_warns, assert_array_equal
import pywt
def test_MODES_from_object_deprecation():
for mode in old_modes:
assert_warns(DeprecationWarning, pywt.Modes.from_object, | mode) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_deprecations.py | test_intwave_deprecation | assert_* | variable | 11 | import warnings
import numpy as np
from numpy.testing import assert_warns, assert_array_equal
import pywt
def test_intwave_deprecation():
wavelet = pywt.Wavelet('db3')
assert_warns(DeprecationWarning, pywt.intwave, | wavelet) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_deprecations.py | test_orthfilt_deprecation | assert_* | func_call | 10 | import warnings
import numpy as np
from numpy.testing import assert_warns, assert_array_equal
import pywt
def test_orthfilt_deprecation():
assert_warns(DeprecationWarning, pywt.orthfilt, | range(6)) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_deprecations.py | test_integrate_wave_tuple | assert_* | collection | 12 | import warnings
import numpy as np
from numpy.testing import assert_warns, assert_array_equal
import pywt
def test_integrate_wave_tuple():
sig = [0, 1, 2, 3]
xgrid = [0, 1, 2, 3]
assert_warns(DeprecationWarning, pywt.integrate_wavelet, | (sig, xgrid)) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_deprecations.py | test_MODES_deprecation_new | assert_* | variable | 13 | import warnings
import numpy as np
from numpy.testing import assert_warns, assert_array_equal
import pywt
def test_MODES_deprecation_new():
def use_MODES_new():
return pywt.MODES.symmetric
assert_warns(DeprecationWarning, | use_MODES_new) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_deprecations.py | test_MODES_deprecation_old | assert_* | variable | 13 | import warnings
import numpy as np
from numpy.testing import assert_warns, assert_array_equal
import pywt
def test_MODES_deprecation_old():
def use_MODES_old():
return pywt.MODES.sym
assert_warns(DeprecationWarning, | use_MODES_old) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_deprecations.py | test_mode_equivalence | assert_* | func_call | 20 | import warnings
import numpy as np
from numpy.testing import assert_warns, assert_array_equal
import pywt
def test_mode_equivalence():
old_new = [('zpd', 'zero'),
('cpd', 'constant'),
('sym', 'symmetric'),
('ppd', 'periodic'),
('sp1', 'smooth'),
... | pywt.dwt(x, 'db2', mode=new)) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_dwt_idwt_basic | assert_* | variable | 24 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | x) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_idwt_single_axis | assert_* | variable | 25 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | x0) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_idwt_single_axis | assert_* | variable | 26 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | x1) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_dwt_axis_arg | assert_* | variable | 21 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | cA) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_dwt_axis_arg | assert_* | variable | 22 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | cD) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_dwt_single_axis | assert_* | variable | 23 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | cA0) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_dwt_single_axis | assert_* | variable | 24 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | cA1) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_dwt_single_axis | assert_* | variable | 26 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | cD0) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_dwt_single_axis | assert_* | variable | 27 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | cD1) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_idwt_none_input | assert_* | variable | 18 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | res2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_error_on_continuous_wavelet | assert_* | variable | 18 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | cwave) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_dwt_idwt.py | test_dwt_idwt_basic | assert_* | variable | 20 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_, assert_raises
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes_out = [np.float64, np.float32, np.float32, np.fl... | cA_expect) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_functions.py | test_intwave_orthogonal | assert_* | complex_expr | 13 | from __future__ import division, print_function, absolute_import
from numpy.testing import assert_almost_equal, assert_allclose
import pywt
def test_intwave_orthogonal():
w = pywt.Wavelet('db1')
int_psi, x = pywt.integrate_wavelet(w, precision=12)
ix = x < 0.5
# For x < 0.5, the integral is equal to ... | x[ix]) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_functions.py | test_centrfreq | assert_* | variable | 13 | from __future__ import division, print_function, absolute_import
from numpy.testing import assert_almost_equal, assert_allclose
import pywt
def test_centrfreq():
# db1 is Haar function, frequency=1
w = pywt.Wavelet('db1')
expected = 1
result = pywt.central_frequency(w, precision=12)
assert_almos... | expected) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_functions.py | test_intwave_orthogonal | assert_* | complex_expr | 16 | from __future__ import division, print_function, absolute_import
from numpy.testing import assert_almost_equal, assert_allclose
import pywt
def test_intwave_orthogonal():
w = pywt.Wavelet('db1')
int_psi, x = pywt.integrate_wavelet(w, precision=12)
ix = x < 0.5
# For x < 0.5, the integral is equal to ... | 1 - x[~ix][:-1]) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_available_modes | assert_* | numeric_literal | 13 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_available_modes():
modes = ['zero', 'constant', 'symmetric', 'periodic', 'smooth',
'periodization', 'reflect', 'antisymmetri... | 2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_invalid_modes | assert_* | numeric_literal | 13 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_invalid_modes():
x = np.arange(4)
assert_raises(ValueError, pywt.dwt, x, 'db2', 'unknown')
assert_raises(ValueError, pywt.dwt, x,... | 9) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_default_mode | assert_* | variable | 16 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_default_mode():
# The default mode should be 'symmetric'
x = [1, 2, 1, 5, -1, 8, 4, 6]
cA, cD = pywt.dwt(x, 'db2')
cA2, cD2 =... | x) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_invalid_modes | assert_* | numeric_literal | 12 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_invalid_modes():
x = np.arange(4)
assert_raises(ValueError, pywt.dwt, x, 'db2', 'unknown')
assert_raises(ValueError, pywt.dwt, x... | -1) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_default_mode | assert_* | variable | 14 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_default_mode():
# The default mode should be 'symmetric'
x = [1, 2, 1, 5, -1, 8, 4, 6]
cA, cD = pywt.dwt(x, 'db2')
cA2, cD2 =... | cA2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_default_mode | assert_* | variable | 15 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_default_mode():
# The default mode should be 'symmetric'
x = [1, 2, 1, 5, -1, 8, 4, 6]
cA, cD = pywt.dwt(x, 'db2')
cA2, cD2 =... | cD2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_invalid_modes | assert_* | none_literal | 14 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_invalid_modes():
x = np.arange(4)
assert_raises(ValueError, pywt.dwt, x, 'db2', 'unknown')
assert_raises(ValueError, pywt.dwt, x,... | None) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_available_modes | assert_* | variable | 12 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_available_modes():
modes = ['zero', 'constant', 'symmetric', 'periodic', 'smooth',
'periodization', 'reflect', 'antisymmetri... | modes) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_dwt_short_input_allmodes | assert_* | complex_expr | 32 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_dwt_short_input_allmodes():
# some test cases where the input is shorter than the DWT filter
x = [1, 3, 2]
wavelet = 'db2'
# ... | expected_result[0]) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_dwt_short_input_allmodes | assert_* | complex_expr | 33 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_dwt_short_input_allmodes():
# some test cases where the input is shorter than the DWT filter
x = [1, 3, 2]
wavelet = 'db2'
# ... | expected_result[1]) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_dwt_idwt_allmodes | assert_* | complex_expr | 49 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_dwt_idwt_allmodes():
# Test that :func:`dwt` and :func:`idwt` can be performed using every mode
x = [1, 2, 1, 5, -1, 8, 4, 6]
dwt... | dwt_results[mode][0]) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_modes.py | test_dwt_idwt_allmodes | assert_* | complex_expr | 50 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_raises, assert_equal, assert_allclose
import pywt
def test_dwt_idwt_allmodes():
# Test that :func:`dwt` and :func:`idwt` can be performed using every mode
x = [1, 2, 1, 5, -1, 8, 4, 6]
dwt... | dwt_results[mode][1]) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multidim.py | test_idwtn_mixed_complex_dtype | assert_* | variable | 22 | from __future__ import division, print_function, absolute_import
import numpy as np
from itertools import combinations
from numpy.testing import assert_allclose, assert_, assert_raises, assert_equal
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes... | x) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multidim.py | test_error_on_continuous_wavelet | assert_* | variable | 24 | from __future__ import division, print_function, absolute_import
import numpy as np
from itertools import combinations
from numpy.testing import assert_allclose, assert_, assert_raises, assert_equal
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes... | c) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multidim.py | test_dwdtn_idwtn_allwavelets | assert_* | variable | 29 | from __future__ import division, print_function, absolute_import
import numpy as np
from itertools import combinations
from numpy.testing import assert_allclose, assert_, assert_raises, assert_equal
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes... | r) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multidim.py | test_idwtn_axes | assert_* | variable | 21 | from __future__ import division, print_function, absolute_import
import numpy as np
from itertools import combinations
from numpy.testing import assert_allclose, assert_, assert_raises, assert_equal
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes... | data) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multidim.py | test_negative_axes | assert_* | variable | 25 | from __future__ import division, print_function, absolute_import
import numpy as np
from itertools import combinations
from numpy.testing import assert_allclose, assert_, assert_raises, assert_equal
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes... | rec2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multidim.py | test_per_axis_wavelets_and_modes | assert_* | variable | 45 | from __future__ import division, print_function, absolute_import
import numpy as np
from itertools import combinations
from numpy.testing import assert_allclose, assert_, assert_raises, assert_equal
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes... | data2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multidim.py | test_dwtn_input | assert_* | string_literal | 20 | from __future__ import division, print_function, absolute_import
import numpy as np
from itertools import combinations
from numpy.testing import assert_allclose, assert_, assert_raises, assert_equal
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes... | 'haar') | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multidim.py | test_negative_axes | assert_* | variable | 21 | from __future__ import division, print_function, absolute_import
import numpy as np
from itertools import combinations
from numpy.testing import assert_allclose, assert_, assert_raises, assert_equal
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes... | coefs2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multidim.py | test_error_on_invalid_keys | assert_* | variable | 27 | from __future__ import division, print_function, absolute_import
import numpy as np
from itertools import combinations
from numpy.testing import assert_allclose, assert_, assert_raises, assert_equal
import pywt
dtypes_in = [np.int8, np.float16, np.float32, np.float64, np.complex64,
np.complex128]
dtypes... | wavelet) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multilevel.py | test_waverec_odd_length | assert_* | variable | 32 | from __future__ import division, print_function, absolute_import
import warnings
from itertools import combinations
import numpy as np
import pytest
from numpy.testing import (assert_almost_equal, assert_allclose, assert_,
assert_equal, assert_raises, assert_raises_regex,
... | x) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multilevel.py | test_waverec_all_wavelets_modes | assert_* | variable | 36 | from __future__ import division, print_function, absolute_import
import warnings
from itertools import combinations
import numpy as np
import pytest
from numpy.testing import (assert_almost_equal, assert_allclose, assert_,
assert_equal, assert_raises, assert_raises_regex,
... | r) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multilevel.py | test_error_on_continuous_wavelet | assert_* | variable | 38 | from __future__ import division, print_function, absolute_import
import warnings
from itertools import combinations
import numpy as np
import pytest
from numpy.testing import (assert_almost_equal, assert_allclose, assert_,
assert_equal, assert_raises, assert_raises_regex,
... | c) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multilevel.py | test_coeffs_to_array | assert_* | collection | 36 | from __future__ import division, print_function, absolute_import
import warnings
from itertools import combinations
import numpy as np
import pytest
from numpy.testing import (assert_almost_equal, assert_allclose, assert_,
assert_equal, assert_raises, assert_raises_regex,
... | []) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_multilevel.py | test_ravel_wavedec2_with_lists | assert_* | variable | 40 | from __future__ import division, print_function, absolute_import
import warnings
from itertools import combinations
import numpy as np
import pytest
from numpy.testing import (assert_almost_equal, assert_allclose, assert_,
assert_equal, assert_raises, assert_raises_regex,
... | x1r) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_swt.py | test_swt_max_level | assert_* | numeric_literal | 31 | from __future__ import division, print_function, absolute_import
import warnings
from copy import deepcopy
from itertools import combinations, permutations
import numpy as np
import pytest
from numpy.testing import (assert_allclose, assert_, assert_equal,
assert_raises, assert_array_equal, a... | 1) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_swt.py | test_swt_max_level | assert_* | numeric_literal | 32 | from __future__ import division, print_function, absolute_import
import warnings
from copy import deepcopy
from itertools import combinations, permutations
import numpy as np
import pytest
from numpy.testing import (assert_allclose, assert_, assert_equal,
assert_raises, assert_array_equal, a... | 2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_swt.py | test_swt_max_level | assert_* | numeric_literal | 33 | from __future__ import division, print_function, absolute_import
import warnings
from copy import deepcopy
from itertools import combinations, permutations
import numpy as np
import pytest
from numpy.testing import (assert_allclose, assert_, assert_equal,
assert_raises, assert_array_equal, a... | 4) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_swt.py | test_swt_max_level | assert_* | numeric_literal | 28 | from __future__ import division, print_function, absolute_import
import warnings
from copy import deepcopy
from itertools import combinations, permutations
import numpy as np
import pytest
from numpy.testing import (assert_allclose, assert_, assert_equal,
assert_raises, assert_array_equal, a... | 0) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_swt.py | test_iswtn_errors | assert_* | variable | 31 | from __future__ import division, print_function, absolute_import
import warnings
from copy import deepcopy
from itertools import combinations, permutations
import numpy as np
import pytest
from numpy.testing import (assert_allclose, assert_, assert_equal,
assert_raises, assert_array_equal, a... | w) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_swt.py | test_swt_iswt_integration | assert_* | variable | 47 | from __future__ import division, print_function, absolute_import
import warnings
from copy import deepcopy
from itertools import combinations, permutations
import numpy as np
import pytest
from numpy.testing import (assert_allclose, assert_, assert_equal,
assert_raises, assert_array_equal, a... | X) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_swt.py | test_swtn_iswtn_unique_shape_per_axis | assert_* | variable | 35 | from __future__ import division, print_function, absolute_import
import warnings
from copy import deepcopy
from itertools import combinations, permutations
import numpy as np
import pytest
from numpy.testing import (assert_allclose, assert_, assert_equal,
assert_raises, assert_array_equal, a... | r) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_swt.py | test_iswt_mixed_dtypes | assert_* | variable | 47 | from __future__ import division, print_function, absolute_import
import warnings
from copy import deepcopy
from itertools import combinations, permutations
import numpy as np
import pytest
from numpy.testing import (assert_allclose, assert_, assert_equal,
assert_raises, assert_array_equal, a... | x) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_swt.py | test_error_on_continuous_wavelet | assert_* | variable | 33 | from __future__ import division, print_function, absolute_import
import warnings
from copy import deepcopy
from itertools import combinations, permutations
import numpy as np
import pytest
from numpy.testing import (assert_allclose, assert_, assert_equal,
assert_raises, assert_array_equal, a... | c) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_thresholding.py | test_threshold | assert_* | string_literal | 99 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_, assert_equal
import pywt
float_dtypes = [np.float32, np.float64, np.complex64, np.complex128]
real_dtypes = [np.float32, np.float64]
def _sign(x):
# Matlab-like s... | 'foo') | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_thresholding.py | test_threshold | assert_* | string_literal | 96 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_, assert_equal
import pywt
float_dtypes = [np.float32, np.float64, np.complex64, np.complex128]
real_dtypes = [np.float32, np.float64]
def _sign(x):
# Matlab-like s... | 'less') | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_thresholding.py | test_threshold | assert_* | string_literal | 83 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_, assert_equal
import pywt
float_dtypes = [np.float32, np.float64, np.complex64, np.complex128]
real_dtypes = [np.float32, np.float64]
def _sign(x):
# Matlab-like s... | 'greater') | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_thresholding.py | test_nonnegative_garotte | assert_* | complex_expr | 37 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_, assert_equal
import pywt
float_dtypes = [np.float32, np.float64, np.complex64, np.complex128]
real_dtypes = [np.float32, np.float64]
def _sign(x):
# Matlab-like s... | data.dtype) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_thresholding.py | test_threshold | assert_* | collection | 33 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_, assert_equal
import pywt
float_dtypes = [np.float32, np.float64, np.complex64, np.complex128]
real_dtypes = [np.float32, np.float64]
def _sign(x):
# Matlab-like s... | [[0, 1]] * 2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_thresholding.py | test_threshold | assert_* | collection | 35 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_, assert_equal
import pywt
float_dtypes = [np.float32, np.float64, np.complex64, np.complex128]
real_dtypes = [np.float32, np.float64]
def _sign(x):
# Matlab-like s... | [[0, 0]] * 2) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_thresholding.py | test_threshold_firm | assert_* | func_call | 52 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_raises, assert_, assert_equal
import pywt
float_dtypes = [np.float32, np.float64, np.complex64, np.complex128]
real_dtypes = [np.float32, np.float64]
def _sign(x):
# Matlab-like s... | np.abs(d_firm[gt])) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavelet_properties | assert_* | variable | 32 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def test_wavelet_properties():
w = pywt.Wavelet('db3')
# Name
assert_(w.name == 'db3')
assert_(w.short_family_name == 'db')
assert_(w.family_name, 'D... | dec_lo) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavelet_properties | assert_* | variable | 33 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def test_wavelet_properties():
w = pywt.Wavelet('db3')
# Name
assert_(w.name == 'db3')
assert_(w.short_family_name == 'db')
assert_(w.family_name, 'D... | dec_hi) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavelet_properties | assert_* | variable | 34 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def test_wavelet_properties():
w = pywt.Wavelet('db3')
# Name
assert_(w.name == 'db3')
assert_(w.short_family_name == 'db')
assert_(w.family_name, 'D... | rec_lo) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavelet_properties | assert_* | variable | 35 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def test_wavelet_properties():
w = pywt.Wavelet('db3')
# Name
assert_(w.name == 'db3')
assert_(w.short_family_name == 'db')
assert_(w.family_name, 'D... | rec_hi) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavefun_sym3 | assert_* | variable | 136 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def check_coefficients_orthogonal(wavelet):
epsilon = 5e-11
level = 5
w = pywt.Wavelet(wavelet)
phi, psi, x = w.wavefun(level=level)
# Lowpass filte... | phi_expect) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavefun_sym3 | assert_* | variable | 137 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def check_coefficients_orthogonal(wavelet):
epsilon = 5e-11
level = 5
w = pywt.Wavelet(wavelet)
phi, psi, x = w.wavefun(level=level)
# Lowpass filte... | psi_expect) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavefun_bior13 | assert_* | variable | 130 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def check_coefficients_orthogonal(wavelet):
epsilon = 5e-11
level = 5
w = pywt.Wavelet(wavelet)
phi, psi, x = w.wavefun(level=level)
# Lowpass filte... | phi_d_expect) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavefun_bior13 | assert_* | variable | 131 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def check_coefficients_orthogonal(wavelet):
epsilon = 5e-11
level = 5
w = pywt.Wavelet(wavelet)
phi, psi, x = w.wavefun(level=level)
# Lowpass filte... | phi_r_expect) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavefun_bior13 | assert_* | variable | 132 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def check_coefficients_orthogonal(wavelet):
epsilon = 5e-11
level = 5
w = pywt.Wavelet(wavelet)
phi, psi, x = w.wavefun(level=level)
# Lowpass filte... | psi_d_expect) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavefun_bior13 | assert_* | variable | 133 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def check_coefficients_orthogonal(wavelet):
epsilon = 5e-11
level = 5
w = pywt.Wavelet(wavelet)
phi, psi, x = w.wavefun(level=level)
# Lowpass filte... | psi_r_expect) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavefun_sym3 | assert_* | func_call | 105 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def check_coefficients_orthogonal(wavelet):
epsilon = 5e-11
level = 5
w = pywt.Wavelet(wavelet)
phi, psi, x = w.wavefun(level=level)
# Lowpass filte... | np.linspace(0, 5, num=x.size)) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wavelet.py | test_wavefun_bior13 | assert_* | func_call | 129 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_allclose, assert_
import pywt
def check_coefficients_orthogonal(wavelet):
epsilon = 5e-11
level = 5
w = pywt.Wavelet(wavelet)
phi, psi, x = w.wavefun(level=level)
# Lowpass filte... | np.linspace(0, 5, x.size, endpoint=False)) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
PyWavelets/pywt | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | train | train | pywt/tests/test_wp.py | test_reconstructing_data | assert_* | variable | 24 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import (assert_allclose, assert_, assert_raises,
assert_equal)
import pywt
def test_reconstructing_data():
x = [1, 2, 3, 4, 5, 6, 7, 8]
wp = pywt.WaveletPacket(data=x, wavelet='db... | x) | d68a6bbc812e75659c4f6648a9ce4505318fcb8f | 103 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.