Skip to content

Commit

Permalink
Fixed newly introduced issue in the binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Guenther committed May 8, 2015
1 parent 814ab98 commit a4344c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bob/learn/em/kmeans_trainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ static PyObject* PyBobLearnEMKMeansTrainer_reset_accumulators(PyBobLearnEMKMeans
PyBobLearnEMKMeansMachineObject* kmeans_machine;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!", kwlist, &PyBobLearnEMKMeansMachine_Type, &kmeans_machine)) return 0;

bool value = self->cxx->resetAccumulators(*kmeans_machine->cxx);
return Py_BuildValue("b", value);
self->cxx->resetAccumulators(*kmeans_machine->cxx);
Py_RETURN_NONE;

BOB_CATCH_MEMBER("cannot perform the reset_accumulators method", 0)
}
Expand Down

0 comments on commit a4344c4

Please sign in to comment.