Opened 5 years ago

Last modified 5 years ago

#52 new defect

ValueError from PyWavelets

Reported by: flip Owned by: bsoher
Priority: major Milestone:
Component: fitting Version:
Keywords: Cc:

Description

I get a ValueError from PyWavelets when I do the following in a fresh start of Analysis:

  1. import press20_montecarlo_voxel4_noise.xml
  2. add voigt tab
  3. fit the spectrum

I see the same error on Windows, OS X and Linux. Traceback below.

I'm running non-standard/unusual versions of just about everything:
64-bit Python 2.7.11
wxPython 3.0.x
numpy 1.10.2
scipy 0.16.0
matplotlib 1.5.0
pyWavelets 0.4.0

  File "/home/me/src/vespa/analysis/src/tab_voigt.py", line 1547, in on_fit_spectrum
    self.process_and_plot(entry='full_fit')

  File "/home/me/src/vespa/analysis/src/tab_voigt.py", line 1631, in process_and_plot
    self.process(entry=entry)

  File "/home/me/src/vespa/analysis/src/tab_voigt.py", line 1653, in process
    statusbar=self.top.statusbar)

  File "/home/me/src/vespa/analysis/src/chain_fit_voigt.py", line 368, in run
    funct.algorithm(self)

  File "/home/me/src/vespa/analysis/src/functors/funct_voigt_baseline_model.py", line 115, in algorithm
    baser = wavelet_filter.wavelet_filter(basr, thresh, scale, dyadmin=dyadmin)

  File "/home/me/src/vespa/analysis/src/wavelet_filter.py", line 291, in wavelet_filter
    result, coefs, filts, levels = wavelet_filter_pywt_new(data, thresh, scale, dyadmin)

  File "/home/me/src/vespa/analysis/src/wavelet_filter.py", line 173, in wavelet_filter_pywt_new
    coeffs2 = pywt.wavedec(data, wavelet, _mode, base_level)

  File "/home/me/anaconda2/lib/python2.7/site-packages/pywt/_multilevel.py", line 83, in wavedec
    level = _check_level(min(data.shape), wavelet.dec_len, level)

  File "/home/me/anaconda2/lib/python2.7/site-packages/pywt/_multilevel.py", line 37, in _check_level
    level, max_level))

ValueError: Level value of 11 is too high.  Maximum allowed is 6.

Change History (1)

comment:1 Changed 5 years ago by bsoher

I followed the instructions above and did NOT get any errors with my existing 32bit Analysis install. However this has all my latest changes in it. Though none of them were specifically to the baseline or wavelet filter routines. I will check this again when I get a 64 bit environment going.

Note: See TracTickets for help on using tickets.