Ignore:
Timestamp:
03/21/12 18:16:46 (2 years ago)
Author:
Janez Demšar <janez.demsar@…>
Branch:
default
Children:
10604:64263715a776, 10606:4ea62a7a1910
Message:

Fixed the code for constructing ExampleTable from masked array

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/lib_kernel.cpp

    r10593 r10603  
    28662866TExampleTable *readListOfExamples(PyObject *args) 
    28672867{ 
    2868   if (isSomeNumeric_wPrecheck(args)) 
    2869     return readListOfExamples(args, PDomain(), false); 
     2868    if (isSomeNumeric_wPrecheck(args)) 
     2869      return readListOfExamples(args, PDomain(), false); 
     2870 
    28702871 
    28712872  if (PySequence_Check(args)) { 
     
    29162917    array = (PyArrayObject *)(args); 
    29172918    mask = (PyArrayObject *)PyObject_GetAttrString(args, "mask"); 
    2918     if (PyBool_Check((PyObject *)mask)) { 
    2919       Py_DECREF((PyObject *)mask); 
    2920       mask = NULL; 
     2919    if (!mask) { 
     2920        PyErr_Clear(); 
    29212921    } 
    29222922  } 
Note: See TracChangeset for help on using the changeset viewer.