snd297 / braintrust

Automatically exported from code.google.com/p/braintrust
0 stars 0 forks source link

Unable to read data error thrown incorrectly #459

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open I005_A0005_D001
2. use timebar to skip forward
3. The error is thrown when there is no data to display. 

What is the expected output? What do you see instead?
This and other datasets have long gaps between data. I suspect that this is the 
cause of the error as it seems that the EEG viewer actually displays the data 
correctly.

info from Sam:
Something's going awry in 

edu.upenn.cis.db.mefview.server.FilterManager.decimateLinearInterpolate(double, 
double, double, long, double, double, TimeSeriesPage[], FilterSpec, 
ChannelSpecifier, boolean, FilterBuffer, double, double)

Zack, maybe you can see what's going wrong:

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at edu.upenn.cis.db.mefview.server.FilterManager.decimateLinearInterpolate(FilterManager.java:461)
        at edu.upenn.cis.db.mefview.server.FilterManager.decimateMinMax(FilterManager.java:608)
        at edu.upenn.cis.db.mefview.server.TimeSeriesPageServer$Decimate.process(TimeSeriesPageServer.java:154)
        at edu.upenn.cis.db.mefview.server.mefpageservers3.DecompressAndPostProc.apply(DecompressAndPostProc.java:197)
        at edu.upenn.cis.db.mefview.server.mefpageservers3.MEFPageServerS3$1.call(MEFPageServerS3.java:1170)
        at edu.upenn.cis.db.mefview.server.mefpageservers3.MEFPageServerS3$1.call(MEFPageServerS3.java:1162)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)

Original issue reported on code.google.com by JBWagenaar on 18 Oct 2013 at 7:56

GoogleCodeExporter commented 8 years ago
I think there was an assumption that there is at least one real sample.  I've 
updated to remove that (and added a test case over fully blank data).

Original comment by zack.i...@gmail.com on 20 Oct 2013 at 8:50

GoogleCodeExporter commented 8 years ago

Original comment by samd.p...@gmail.com on 21 Oct 2013 at 4:36