Skip to content
Snippets Groups Projects
Commit 14c0abbd authored by Octave Perrin's avatar Octave Perrin
Browse files

update python bind

parent bd906dbe
No related branches found
No related tags found
No related merge requests found
...@@ -133,7 +133,7 @@ public: ...@@ -133,7 +133,7 @@ public:
* specified location. * specified location.
* @param string path: Path where the file should be put * @param string path: Path where the file should be put
* @param bool verbose: If true give more informations in the console during the saving process * @param bool verbose: If true give more informations in the console during the saving process
* @param bool showProducers: if true, shows additional informations * @param bool showProducers: if true, shows the producers as well
*/ */
void save(const std::string& path, bool verbose = false, bool showProducers = true) const; void save(const std::string& path, bool verbose = false, bool showProducers = true) const;
......
...@@ -29,6 +29,10 @@ void init_GraphView(py::module& m) { ...@@ -29,6 +29,10 @@ void init_GraphView(py::module& m) {
:param path: save location :param path: save location
:type path: str :type path: str
:param verbose: If true give more informations in the console during the saving process
:type verbose: bool
:param show_producers: if true, shows the producer Nodes as well
:type show_producers: bool
)mydelimiter") )mydelimiter")
.def("inputs", (std::vector<std::pair<NodePtr, IOIndex_t>> (GraphView::*)() const) &GraphView::inputs, .def("inputs", (std::vector<std::pair<NodePtr, IOIndex_t>> (GraphView::*)() const) &GraphView::inputs,
...@@ -45,8 +49,8 @@ void init_GraphView(py::module& m) { ...@@ -45,8 +49,8 @@ void init_GraphView(py::module& m) {
R"mydelimiter( R"mydelimiter(
List outside output connections of the GraphView. List outside output connections of the GraphView.
The vector size is guaranteed to match the number of outputs of the GraphView. The vector size is guaranteed to match the number of outputs of the GraphView.
If there is no connection to a given output, the corresponding sub-vector will be empty. If there is no connection to a given output, the corresponding sub-vector will be empty.
:return: A list containing the pairs Node, output indexes. :return: A list containing the pairs Node, output indexes.
:rtype: List[Node, int] :rtype: List[Node, int]
)mydelimiter") )mydelimiter")
...@@ -137,6 +141,7 @@ void init_GraphView(py::module& m) { ...@@ -137,6 +141,7 @@ void init_GraphView(py::module& m) {
R"mydelimiter( R"mydelimiter(
Get set of output Nodes. Get set of output Nodes.
:return: the output Nodes of the Graph
:rtype: list[Node] :rtype: list[Node]
)mydelimiter") )mydelimiter")
...@@ -144,6 +149,7 @@ void init_GraphView(py::module& m) { ...@@ -144,6 +149,7 @@ void init_GraphView(py::module& m) {
R"mydelimiter( R"mydelimiter(
Get set of input Nodes. Get set of input Nodes.
:return: the input Nodes of the Graph
:rtype: list[Node] :rtype: list[Node]
)mydelimiter") )mydelimiter")
...@@ -227,9 +233,9 @@ void init_GraphView(py::module& m) { ...@@ -227,9 +233,9 @@ void init_GraphView(py::module& m) {
Replace the old set of Nodes with the new set of given Nodes if possible in every GraphView. Replace the old set of Nodes with the new set of given Nodes if possible in every GraphView.
:param old_nodes: Nodes actually connected in GraphViews. :param old_nodes: Nodes actually connected in GraphViews.
:type old_nodes: Node :type old_nodes: List[Node]
:param new_nodes: Nodes with inner connections already taken care of. :param new_nodes: Nodes with inner connections already taken care of.
:type new_nodes: Node :type new_nodes: List[Node]
:return: Whether any replacement has been made. :return: Whether any replacement has been made.
:rtype: bool :rtype: bool
)mydelimiter") )mydelimiter")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment