Opened 9 years ago
Closed 9 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: |
Description
- open the attached VIFF which is just press_cp0 w/a fitting tab
- Click on the fitting tab
- Click on initial values subtab
- 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/tab_voigt.py", line 1255, in on_initial_baseline_method self.process_and_plot() File "/Users/me/w/duke/src/vespa/analysis/src/tab_voigt.py", line 2008, in process_and_plot self.process(entry=entry) File "/Users/me/w/duke/src/vespa/analysis/src/tab_voigt.py", line 1965, in process self.block.chain.run(voxel=voxel, entry=entry, statusbar=self.top.statusbar) File "/Users/me/w/duke/src/vespa/analysis/src/chain_voigt.py", line 353, in run funct.algorithm(self) File "/Users/me/w/duke/src/vespa/analysis/src/functors/funct_initial_values.py", line 167, in algorithm util_inital_values.find_initial_values(chain.data, chain) File "/Users/me/w/duke/src/vespa/analysis/src/util_initial_values.py", line 2515, in find_initial_values initvals_1h_lowfield_shortte(data, chain) File "/Users/me/w/duke/src/vespa/analysis/src/util_initial_values.py", line 1848, in initvals_1h_lowfield_shortte ddat = inital_estimate_baseline(ddat, proc) File "/Users/me/w/duke/src/vespa/analysis/src/util_initial_values.py", 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/util_initial_values.py", 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/function_base.py", 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/fromnumeric.py", line 2374, in mean return mean(axis, dtype, out) FloatingPointError: invalid value encountered in double_scalars
Attachments (1)
Change History (3)
Changed 9 years ago by flip
comment:1 Changed 9 years ago by bsoher
comment:2 Changed 9 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.
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().