Opened 8 years ago

Closed 8 years ago

#46 closed defect (fixed)

Lowess baseline estimate raises FloatingPointError

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


  1. open the attached VIFF which is just press_cp0 w/a fitting tab
  2. Click on the fitting tab
  3. Click on initial values subtab
  4. Under baseline estimate, choose Lowess. Immediately I get the error below.
Traceback (most recent call last):
 File "/Users/me/w/duke/src/vespa/analysis/src/", line 1255, in on_initial_baseline_method
 File "/Users/me/w/duke/src/vespa/analysis/src/", line 2008, in process_and_plot
 File "/Users/me/w/duke/src/vespa/analysis/src/", line 1965, in process, entry=entry,
 File "/Users/me/w/duke/src/vespa/analysis/src/", line 353, in run
 File "/Users/me/w/duke/src/vespa/analysis/src/functors/", line 167, in algorithm
   util_inital_values.find_initial_values(, chain)
 File "/Users/me/w/duke/src/vespa/analysis/src/", line 2515, in find_initial_values
   initvals_1h_lowfield_shortte(data, chain)
 File "/Users/me/w/duke/src/vespa/analysis/src/", line 1848, in initvals_1h_lowfield_shortte
   ddat = inital_estimate_baseline(ddat, proc)
 File "/Users/me/w/duke/src/vespa/analysis/src/", line 1186, in inital_estimate_baseline
   base1 = baseline_estimation_lowess(dat.real, proc, widmul=1.0)
 File "/Users/me/w/duke/src/vespa/analysis/src/", line 640, in baseline_estimation_lowess
   ms  = np.median(dat[lhs1:lhs])
 File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/", line 2955, in median
   return mean(sorted[indexer], axis=axis, out=out)
 File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/", line 2374, in mean
   return mean(axis, dtype, out)
FloatingPointError: invalid value encountered in double_scalars

Attachments (1)

a.xml (106.4 KB) - added by flip 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by flip

comment:1 Changed 8 years ago by bsoher

fixed in r3256, units for an input array for lowess baseline estimation had changed elsewhere in the code resulting in an empty array that crashed np.median().

comment:2 Changed 8 years ago by flip

  • Resolution set to fixed
  • Status changed from new to closed

Fix confirmed, closing

Note: See TracTickets for help on using tickets.