Changeset 10761:a470a6a27676 in orange


Ignore:
Timestamp:
04/05/12 13:37:04 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Explicitly catch an exception thrown by betai (if compiled by gcc the statexception does not get handled by PyCATCH macro).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/basstat.cpp

    r9141 r10761  
    203203  t = r*sqrt((N-2)/(1-r*r)); 
    204204  df = int(floor(N)); 
    205    
    206   p=betai(double(df*0.5), double(0.5), double(df/(df+t*t))); 
    207 } 
     205  try 
     206  { 
     207    p=betai(double(df*0.5), double(0.5), double(df/(df+t*t))); 
     208  } 
     209    catch (const std::exception &exc) 
     210    { 
     211      raiseError(exc.what()); 
     212    } 
     213} 
Note: See TracChangeset for help on using the changeset viewer.