oleksiiparf / plsnpairs

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

NPAIRS Block analysis, data reduction factor of 0.0 Bad error message #154

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Giving a data reduction factor of 0.0 while specifying valid sets of pcs for 
the split cva and full data cva gives the following error message.

java.lang.IllegalArgumentException: Invalid row or col range
    at npairs.shared.matlib.ParallelColtDoubleMatrix.subMatrix(ParallelColtDoubleMatrix.java:480)
    at npairs.shared.matlib.ParallelColtDoubleMatrix.subMatrix(ParallelColtDoubleMatrix.java:1)
    at npairs.io.NpairsDataLoader.selectFeaturesEVD(NpairsDataLoader.java:463)
    at npairs.io.NpairsDataLoader.selectFeatures(NpairsDataLoader.java:325)
    at npairs.io.NpairsDataLoader.loadNpairsData(NpairsDataLoader.java:127)
    at npairs.io.NpairsDataLoader.<init>(NpairsDataLoader.java:60)
    at pls.analysis.NpairsAnalysis.doTask(NpairsAnalysis.java:176)
    at pls.chrome.shared.ProgressDialogWatcher.run(ProgressDialogWatcher.java:15)

The gui gives us:
------------------------------
An error has occurred: 
------------------------------
Invalid row or col range

Ideally there should be a better error message here.

Original issue reported on code.google.com by flt.john...@gmail.com on 15 Oct 2010 at 3:04

GoogleCodeExporter commented 8 years ago
The user should not be allowed to enter a data reduction factor of 0.0. The gui 
should block out the user from entering this value.

Original comment by flt.john...@gmail.com on 20 Oct 2010 at 2:20