Commit 650fd181 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[Python] add python binding for contactSequence::isTimeConsistent()

parent 67262067
......@@ -95,6 +95,11 @@ struct ContactSequencePythonVisitor : public bp::def_visitor<ContactSequencePyth
"Raise value_error if the phaseDuration is provided but the last phase do not have a time-range "
"Raise value_error if eeName is not in contact in the last phase of the sequence\n"))
.def("isTimeConsistent", &CS::isTimeConsistent,
"isTimeConsistent Check if all the time intervals are defined and consistent"
"(ie. the time always increase and the final time of one phase is equal to the initial one of the newt "
"phase) \n"
"Return true if the sequence is consistent, false otherwise")
.def(bp::self == bp::self)
.def(bp::self != bp::self)
.def("copy", &copy, "Returns a copy of *this.");
Supports Markdown
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