Commit dbc1fdc3 authored by Manuel Günther's avatar Manuel Günther

Trying out some code to chase issue in py26

parent 15365313
......@@ -299,7 +299,7 @@ BOB_TRY
int istrue = PyObject_IsTrue(o);
if (istrue == -1) return -1;
self->cxx->setUseSVD(istrue);
self->cxx->setUseSVD(istrue?true:false);
return 0;
BOB_CATCH_MEMBER("use_svd", -1)
}
......@@ -325,7 +325,7 @@ BOB_TRY
int istrue = PyObject_IsTrue(o);
if (istrue == -1) return -1;
self->cxx->setSafeSVD(istrue);
self->cxx->setSafeSVD(istrue?true:false);
return 0;
BOB_CATCH_MEMBER("safe_svd", -1)
}
......
......@@ -234,6 +234,10 @@ def test_pca_settings():
assert T.use_svd == True
T.use_svd = False
assert T.use_svd == False
T.safe_svd = True
assert T.safe_svd == True
T.safe_svd = False
assert T.safe_svd == False
T = PCATrainer(False)
assert T.use_svd == False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment