Changeset 10494:b92eb3f86d16 in orange


Ignore:
Timestamp:
03/12/12 15:12:30 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Raise an error if less the two unique points.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/statc/statc.cpp

    r8026 r10494  
    14531453  Py_DECREF(iter); 
    14541454   
     1455  if (nUniquePoints(xpoints) < 2) 
     1456  { 
     1457      PyErr_Format(PyExc_ValueError, "A list with at least 2 unique points required."); 
     1458      return false; 
     1459  } 
     1460 
    14551461  if (distMethod != -1) 
    14561462    sampFuncs[distMethod](xpoints, nPoints, sampPoints); 
Note: See TracChangeset for help on using the changeset viewer.